/* Landing page specific styles */

/* Floating background regenerate button */
.floating-background-button {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.floating-background-button:hover {
    transform: scale(1.1) translateY(-2px);
    background: #5ba8ff;
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-background-button:active {
    transform: scale(0.95) translateY(0px);
    transition: all 0.1s ease;
}

.floating-background-button .button-thumbnail {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-background-button:hover .button-thumbnail {
    transform: rotate(180deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Add a subtle pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(74, 158, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    }
}

.floating-background-button {
    animation: pulse 3s ease-in-out infinite;
}


.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.landing-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.landing-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: lowercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-color), rgba(74, 158, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.landing-main {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 40px;
}

.generators-nav {
    width: 420px;
    max-width: 90vw;
    background: var(--panel-bg);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(74, 158, 255, 0.05);
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title .material-icons {
    font-size: 24px;
    color: var(--accent-color);
}

.nav-cards {
    padding: 10px 10px 0 10px;
}

.generator-card {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 20px;
    background: rgba(74, 158, 255, 0.03);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.generator-card:hover::before {
    left: 100%;
}

.generator-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background: rgba(74, 158, 255, 0.08);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.15);
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.generator-card:hover .card-icon {
    background: rgba(74, 158, 255, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.card-icon .material-icons {
    font-size: 32px;
    color: var(--accent-color);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
}

.generator-card:hover .card-title {
    color: var(--accent-color);
}

.card-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}

.card-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.feature-tag {
    font-size: 0.7em;
    padding: 3px 8px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.generator-card:hover .feature-tag {
    background: rgba(74, 158, 255, 0.2);
    border-color: var(--accent-color);
}

.card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.generator-card:hover .card-arrow {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.card-arrow .material-icons {
    font-size: 20px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.generator-card:hover .card-arrow .material-icons {
    color: var(--bg-color);
}

/* Responsive design */
@media (max-width: 768px) {
    /* Override the main body overflow hidden for mobile landing page */
    body {
        overflow: auto !important;
    }
    
    .landing-container {
        min-height: 100vh; /* Allow content to extend beyond viewport */
        overflow-y: auto; /* Enable vertical scrolling */
    }
    
    .landing-header {
        justify-content: center;
        padding: 0px; /* Reduced padding */
        margin-bottom: 15px; /* Reduced margin */
    }
    
    .landing-title {
        font-size: 2em;
    }
    
    .landing-main {
        justify-content: center;
        padding: 0; /* Reduced padding for more space */
        padding-top: 160px; /* Add space for the floating planet */
        padding-bottom: 40px; /* Add bottom padding for scrolling space */
    }
    
    .floating-planet-container {
        top: 160px !important; /* Position below header, above generators - moved up more */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 250px;
        height: 250px;
        z-index: 2; /* Between header (z-index: 10) and generators (z-index: 5) */
        margin: 0 !important; /* Reset any margin that might offset centering */
        right: auto !important; /* Make sure right positioning doesn't interfere */
    }
    
    .generators-nav {
        width: 100%;
        max-width: 500px;
    }
    
    .generator-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .card-content {
        align-items: center;
    }
    
    .card-features {
        justify-content: center;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-title {
    animation: fadeInUp 0.8s ease-out;
}

.generators-nav {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Floating Planet Overlay */
.floating-planet-container {
    position: fixed;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    z-index: 1;
    pointer-events: none;
    animation: floatIn 1.2s ease-out 0.8s both;
}

/* Planet Click Tip */
.planet-click-tip {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(74, 158, 255, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    z-index: 100;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
    pointer-events: none;
    animation: tipPulse 2s ease-in-out infinite, tipFadeIn 0.5s ease-out 2s both;
    opacity: 0;
}

.planet-click-tip .material-icons {
    font-size: 18px;
}

.planet-click-tip.hidden {
    display: none;
}

@keyframes tipPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
}

@keyframes tipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
}

#heroPlanet {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 15px rgba(74, 158, 255, 0.4));
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

#heroPlanet:hover {
    filter: drop-shadow(0 0 25px rgba(74, 158, 255, 0.6));
    transform: scale(1.05);
}

.planet-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(74, 158, 255, 0.08) 0%,
        rgba(74, 158, 255, 0.04) 50%,
        transparent 70%
    );
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseGlow {
    from {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Footer Navigation */
.landing-footer {
    position: relative;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

.footer-links a:hover {
    color: var(--accent-color);
    background: rgba(74, 158, 255, 0.1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-text p {
    margin: 0;
}

/* Mobile footer */
@media screen and (max-width: 768px) {
    .landing-container {
        padding-bottom: 120px; /* Add space for footer */
    }
    
    .landing-footer {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .footer-links {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .footer-links a {
        padding: 4px 8px;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}