/**
 * Daily Astrology Reader - Public Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Raleway:wght@300;400;500&display=swap');

/* Container */
.dar-container {
    font-family: 'Raleway', sans-serif;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 100%);
    min-height: 1200px;
    width: 1200px;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 40px 60px;
    margin: 0 auto;
}

/* Stars */
.dar-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dar-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: darTwinkle 3s infinite ease-in-out;
}

@keyframes darTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header */
.dar-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.dar-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(212, 175, 125, 0.7);
    margin-bottom: 15px;
}

.dar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(212, 175, 125, 0.2);
    margin: 0;
}

.dar-title span {
    color: #d4af7d;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.dar-title span::before,
.dar-title span::after {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #d4af7d, transparent);
    border-radius: 2px;
}

/* Input Section */
.dar-input-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dar-input-label {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 125, 0.8);
    margin-bottom: 20px;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(212, 175, 125, 0.5);
    }
}

.dar-date-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dar-date-input {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 125, 0.2);
    border-radius: 12px;
    color: #fff;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.dar-date-input:focus {
    outline: none;
    border-color: #d4af7d;
    background: rgba(212, 175, 125, 0.1);
}

.dar-date-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.dar-date-input.dar-day,
.dar-date-input.dar-month {
    width: 85px;
}

.dar-date-input.dar-year {
    width: 120px;
}

.dar-date-slash {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: rgba(212, 175, 125, 0.5);
}

/* ========================================
   ZODIAC GRID - Opening Screen
   ======================================== */

.dar-zodiac-grid-section {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.dar-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px;
}

.dar-zodiac-grid-item {
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dar-zodiac-grid-item:hover {
    transform: scale(1.05);
}

.dar-zodiac-grid-item:hover .dar-zodiac-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dar-zodiac-grid-image {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.dar-zodiac-grid-item:hover .dar-zodiac-grid-image {
    box-shadow: 0 8px 30px rgba(212, 175, 125, 0.4);
}

.dar-zodiac-grid-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #d4af7d;
    margin-top: 12px;
    letter-spacing: 1px;
}

.dar-zodiac-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
    border: 1px solid rgba(212, 175, 125, 0.3);
    border-radius: 12px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.dar-zodiac-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: rgba(212, 175, 125, 0.3);
}

.dar-zodiac-tooltip-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: #d4af7d;
    margin-bottom: 4px;
}

.dar-zodiac-tooltip-dates {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.dar-zodiac-tooltip-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.dar-zodiac-tooltip-meta span {
    color: #d4af7d;
}

.dar-zodiac-tooltip-traits {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Disclaimer on opening screen */
.dar-disclaimer {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
/* ========================================
   QUICK SUMMARY SECTION - ADD THIS CSS
   ======================================== */

/* Quick Summary */
.dar-quick-summary {
    background: rgba(212, 175, 125, 0.08);
    border: 1px solid rgba(212, 175, 125, 0.25);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 30px;
    text-align: center;
}

.dar-summary-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: #d4af7d;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.dar-summary-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .dar-quick-summary {
        padding: 20px;
    }
    
    .dar-summary-title {
        font-size: 16px;
    }
    
    .dar-summary-text {
        font-size: 14px;
    }
}
/* ========================================
   PROFILE SECTION (after birthday entered)
   ======================================== */

.dar-profile-section {
    position: relative;
    z-index: 1;
}

.dar-zodiac-hero {
    text-align: center;
    margin-bottom: 30px;
}

.dar-zodiac-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(212, 175, 125, 0.3);
}

.dar-zodiac-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dar-zodiac-sign-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    color: #d4af7d;
    margin-bottom: 5px;
}

.dar-zodiac-sign-dates {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* Profile Grid */
.dar-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dar-profile-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: help;
    transition: all 0.3s ease;
}

.dar-profile-item:hover {
    background: rgba(212, 175, 125, 0.08);
    border-color: rgba(212, 175, 125, 0.3);
}

.dar-profile-item:hover .dar-profile-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dar-profile-item-symbol {
    font-size: 28px;
    margin-bottom: 10px;
}

.dar-profile-item-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.dar-profile-item-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #d4af7d;
}

/* Profile Item Tooltips */
.dar-profile-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
    border: 1px solid rgba(212, 175, 125, 0.3);
    border-radius: 12px;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.dar-profile-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(212, 175, 125, 0.3);
}

.dar-profile-tooltip-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #d4af7d;
    margin-bottom: 6px;
}

.dar-profile-tooltip-text {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Cosmic Weather */
.dar-cosmic-weather {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.dar-cosmic-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.dar-cosmic-icon {
    font-size: 16px;
}

/* Categories */
.dar-categories-section {
    margin-bottom: 30px;
}

.dar-categories-label {
    text-align: center;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 125, 0.8);
    margin-bottom: 20px;
}

.dar-categories-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
}

.dar-category-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(212, 175, 125, 0.25);
    border-radius: 15px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dar-category-btn:hover {
    background: rgba(212, 175, 125, 0.2);
    border-color: rgba(212, 175, 125, 0.5);
    transform: translateY(-3px);
}

.dar-category-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
}

.dar-category-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* Reading Section */
.dar-reading-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.dar-reading-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dar-reading-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dar-reading-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: #d4af7d;
}

.dar-reading-category {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #d4af7d;
    text-align: center;
    margin-bottom: 20px;
}

.dar-reading-content {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Lucky Numbers */
.dar-lucky-numbers-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(212, 175, 125, 0.15);
    text-align: center;
}

.dar-lucky-numbers-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 125, 0.7);
    margin-bottom: 15px;
}

.dar-lucky-numbers {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dar-lucky-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.2), rgba(212, 175, 125, 0.1));
    border: 1px solid rgba(212, 175, 125, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #d4af7d;
}

/* Loading */
.dar-loading {
    text-align: center;
    padding: 40px;
}

.dar-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 125, 0.2);
    border-top-color: #d4af7d;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: darSpin 1s linear infinite;
}

@keyframes darSpin {
    to { transform: rotate(360deg); }
}

.dar-loading-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Footer */
.dar-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 125, 0.1);
    position: relative;
    z-index: 1;
}

/* Credit Line - Outside Container */
.dar-credit-line {
    text-align: center;
    font-size: 14px;
    font-style: italic;
    color: #000;
    padding: 15px;
    margin-top: 15px;
}

.dar-credit-line a {
    color: #d4af7d;
    text-decoration: none;
}

.dar-credit-line a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1250px) {
    .dar-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .dar-zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .dar-zodiac-grid-image {
        max-width: 100px;
    }
    
    .dar-zodiac-grid-name {
        font-size: 14px;
    }
    
    .dar-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dar-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .dar-cosmic-weather {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .dar-container {
        padding: 20px 15px;
    }

    .dar-title {
        font-size: 28px;
    }

    .dar-title span {
        gap: 12px;
        font-size: 26px;
    }

    .dar-date-input {
        font-size: 24px;
        padding: 12px 8px;
    }

    .dar-date-input.dar-day,
    .dar-date-input.dar-month {
        width: 65px;
    }

    .dar-date-input.dar-year {
        width: 95px;
    }

    .dar-zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .dar-zodiac-grid-image {
        max-width: 80px;
    }

    .dar-zodiac-grid-name {
        font-size: 12px;
        margin-top: 8px;
    }

    .dar-zodiac-tooltip {
        width: 200px;
        padding: 12px;
        font-size: 11px;
    }

    .dar-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dar-category-btn {
        padding: 12px 8px;
    }

    .dar-category-icon {
        width: 35px;
        height: 35px;
    }

    .dar-category-name {
        font-size: 9px;
    }

    .dar-reading-content {
        font-size: 16px;
    }

    .dar-lucky-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}