/* Lucky Numbers Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 0.8s ease;
}

/* Content Section */
.content-section {
    margin-bottom: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: fadeInUp 0.8s ease;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

/* Zodiac Selector */
.zodiac-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.zodiac-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.2rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.zodiac-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.zodiac-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.zodiac-btn-icon {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.zodiac-btn-name {
    font-size: 1rem;
    font-weight: 600;
}

/* Results Container */
.results-container {
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
}

.results-container.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.selected-sign-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease;
}

.results-header h3 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.results-date {
    font-size: 1rem;
    opacity: 0.8;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.number-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.numbers-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.number-ball {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s ease backwards;
    transition: transform 0.3s ease;
}

.number-ball:hover {
    transform: scale(1.1) rotate(5deg);
}

.numbers-display.power .number-ball {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.3));
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Lucky Time */
.lucky-time {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite;
}

/* Share Container */
.share-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.share-title {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .zodiac-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .zodiac-btn {
        padding: 1rem 0.5rem;
    }

    .zodiac-btn-icon {
        font-size: 2rem;
    }

    .zodiac-btn-name {
        font-size: 0.85rem;
    }

    .number-ball {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .numbers-display.power .number-ball {
        width: 85px;
        height: 85px;
        font-size: 2rem;
    }

    .lucky-time {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .share-buttons {
        gap: 0.5rem;
    }

    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .back-btn {
        position: relative;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem 0.5rem;
    }

    .zodiac-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation delays for number balls */
.number-ball:nth-child(1) {
    animation-delay: 0.1s;
}

.number-ball:nth-child(2) {
    animation-delay: 0.2s;
}

.number-ball:nth-child(3) {
    animation-delay: 0.3s;
}

.number-ball:nth-child(4) {
    animation-delay: 0.4s;
}

.number-ball:nth-child(5) {
    animation-delay: 0.5s;
}