* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

a {
    color: yellow;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.logo {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.logo-line1 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8em;
    font-style: italic;
    color: yellow;
    text-align: left;
    position: relative;
    z-index: 1;
    padding-left: 0.1em;
    margin-bottom: -0.4em;
    line-height: 1;
}

.logo-line2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4em;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 0;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    text-align: left;
}

/* Input Section */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    transition: opacity 0.3s, max-height 0.3s;
}

.input-section.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.optional-label {
    font-weight: 400;
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85em;
}

.location-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.location-hint {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    display: none;
}

.error-message.show {
    display: block;
}

/* Results Container */
.results-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NASA Card (Primary) - Pokemon Card Style */
.nasa-card {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #ffd700;
    margin-bottom: 25px;
    position: relative;
}

.nasa-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 20px;
    z-index: -1;
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.card-header h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

/* Sun Sign (Main) */
.sign-main {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 3px solid #e9ecef;
}

.sign-symbol {
    font-size: 6em;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Timeline */
.timeline-container {
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.timeline-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    margin: 0 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.birth-marker {
    position: absolute;
    top: -8px;
    font-size: 1.5em;
    transform: translateX(-50%);
    cursor: help;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: birthMarkerPulse 2s ease-in-out infinite;
}

@keyframes birthMarkerPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.timeline-marker {
    position: relative;
}

.timeline-date {
    display: block;
    font-weight: 600;
    color: #667eea;
    font-size: 0.95em;
    white-space: nowrap;
}

.timeline-marker.start .timeline-date {
    text-align: left;
}

.timeline-marker.end .timeline-date {
    text-align: right;
}

.sign-name {
    text-align: center;
}

.sign-label {
    display: block;
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sign-constellation {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

/* Secondary Signs (Moon and Rising) */
.signs-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sign-mini {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.sign-symbol-mini {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

.sign-info-mini {
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 6px;
}

.sign-position {
    font-size: 0.75em;
    color: #667eea;
    font-weight: 600;
    font-style: italic;
}

.timeline-container-mini {
    margin-bottom: 10px;
}

.timeline-mini {
    position: relative;
    margin-bottom: 5px;
}

.timeline-bar-mini {
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.birth-marker-mini {
    position: absolute;
    top: -6px;
    font-size: 1em;
    transform: translateX(-50%);
    cursor: help;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.timeline-dates-mini {
    text-align: center;
}

.timeline-date-mini {
    font-size: 0.75em;
    color: #667eea;
    font-weight: 600;
}

.sign-name-mini {
    text-align: center;
}

.sign-label-mini {
    display: block;
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.sign-constellation-mini {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
}

/* Birth Info */
.birth-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.birth-info span {
    font-weight: 600;
    color: #555;
}

/* Location Warning */
.location-warning {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 2px solid #ffa726;
    border-radius: 12px;
    margin-top: 20px;
}

.warning-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.warning-text strong {
    display: block;
    color: #f57c00;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.warning-text p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.location-warning-trad {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 152, 0, 0.12));
    border: 2px solid #d4af37;
    border-radius: 10px;
    margin-top: 15px;
}

.warning-text-trad strong {
    display: block;
    color: #8b7355;
    margin-bottom: 3px;
    font-size: 0.95em;
}

.warning-text-trad p {
    color: #666;
    margin: 0;
    font-size: 0.85em;
}

/* Traditional Card (Comparison) - 50% Size */
.traditional-card {
    background: linear-gradient(to bottom, #fff9e6 0%, #f0e5d8 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 5px solid #d4af37;
    position: relative;
    transform: scale(0.95);
}

.card-header-small {
    text-align: center;
    margin-bottom: 15px;
}

.card-header-small h3 {
    font-size: 1.3em;
    color: #8b7355;
    margin-bottom: 3px;
}

.card-subtitle-small {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

/* Traditional Sun Sign */
.sign-traditional {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border: 2px solid #f0e5d8;
}

.sign-symbol-trad {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 10px;
}

.timeline-container-trad {
    margin-bottom: 12px;
}

.timeline-trad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.birth-marker-trad {
    position: absolute;
    top: -7px;
    font-size: 1.2em;
    transform: translateX(-50%);
    cursor: help;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    padding: 0 15px;
}

.timeline-bar-trad {
    flex: 1;
    height: 6px;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 3px;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.timeline-marker-trad {
    position: relative;
}

.timeline-date-trad {
    display: block;
    font-weight: 600;
    color: #8b7355;
    font-size: 0.8em;
    white-space: nowrap;
}

.sign-name-trad {
    text-align: center;
}

.sign-label-trad {
    display: block;
    font-size: 0.8em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.sign-constellation-trad {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

/* Traditional Secondary Signs */
.signs-secondary-trad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sign-mini-trad {
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0e5d8;
}

.sign-symbol-mini-trad {
    font-size: 2em;
    text-align: center;
    margin-bottom: 8px;
}

.sign-info-mini-trad {
    text-align: center;
    margin-bottom: 8px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 208, 63, 0.15));
    border-radius: 5px;
}

.sign-position-trad {
    font-size: 0.7em;
    color: #8b7355;
    font-weight: 600;
    font-style: italic;
}

.sign-name-mini-trad {
    text-align: center;
}

.sign-label-mini-trad {
    display: block;
    font-size: 0.7em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sign-constellation-mini-trad {
    display: block;
    font-size: 1em;
    font-weight: 700;
    color: #333;
}

/* Share Section */
.share-section {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}

.share-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.share-feedback {
    display: inline-block;
    margin-left: 15px;
    color: #28a745;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.share-feedback.show {
    opacity: 1;
}

/* New Calculation Button */
.new-calc-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}

.new-calc-btn {
    padding: 18px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.new-calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.new-calc-btn:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    opacity: 0.9;
}

footer p {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.info-note {
    font-size: 0.85em;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-line1 {
        font-size: 1.4em;
    }
    
    .logo-line2 {
        font-size: 2.8em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .location-group {
        grid-template-columns: 1fr;
    }

    .signs-secondary {
        grid-template-columns: 1fr;
    }

    .signs-secondary-trad {
        grid-template-columns: 1fr;
    }

    .nasa-card {
        padding: 20px;
    }

    .sign-symbol {
        font-size: 4em;
    }
}
