/* Orbitron Font Import */
@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    /* Space Theme Colors */
    --primary: #00d4ff; /* Cyan/electric blue */
    --secondary: #8b5cf6; /* Purple nebula */
    --accent: #ff006e; /* Pink supernova */
    --bg-dark: #0a0e27; /* Deep space navy */
    --bg-card: #151933; /* Darker card background */
    --bg-card-hover: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border: #2d3748;
    --hover: #00ffff;
    --glow-cyan: rgba(0, 212, 255, 0.5);
    --glow-purple: rgba(139, 92, 246, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Animated Star Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: stars 60s linear infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

@keyframes stars {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

/* Floating Orbs Animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 0, 110, 0.1) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: floatingOrbs 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingOrbs {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 30%;
        opacity: 0.3;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 30% 70%;
        opacity: 0.5;
    }
}

/* Shooting Star Animation */
@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }
}

.shooting-star {
    position: fixed;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 212, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shootingStar 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 29.5s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 3s;
}

.shooting-star:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-delay: 7s;
    animation-duration: 2.8s;
}

/* Ensure content is above stars */
.site-header, .container, .footer, .modal {
    position: relative;
    z-index: 1;
}

/* Site Header */
.site-header {
    border-bottom: 2px solid var(--border);
    background: rgba(21, 25, 51, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    flex-shrink: 0;
}

.header-profile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--glow-cyan), 0 0 40px var(--glow-cyan);
}

.header-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05rem;
}

.header-right {
    flex-shrink: 0;
}

.bluesky-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bluesky-link:hover {
    color: var(--hover);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.online-count {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.online-count p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.online-count .count-number {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin: 0 0.2rem;
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInCard 0.3s ease forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-card:nth-child(1) { animation-delay: 0.05s; }
.model-card:nth-child(2) { animation-delay: 0.1s; }
.model-card:nth-child(3) { animation-delay: 0.15s; }
.model-card:nth-child(4) { animation-delay: 0.2s; }
.model-card:nth-child(5) { animation-delay: 0.25s; }
.model-card:nth-child(6) { animation-delay: 0.3s; }
.model-card:nth-child(7) { animation-delay: 0.35s; }
.model-card:nth-child(8) { animation-delay: 0.4s; }
.model-card:nth-child(9) { animation-delay: 0.45s; }
.model-card:nth-child(10) { animation-delay: 0.5s; }
.model-card:nth-child(11) { animation-delay: 0.55s; }
.model-card:nth-child(12) { animation-delay: 0.6s; }
.model-card:nth-child(n+13) { animation-delay: 0.65s; }

.model-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: translateY(-5px);
}

/* --- THUMBNAIL AREA --- */
.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

/* blurred fill background */
.thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.2s;
}

.thumb-bg-visible {
    opacity: 1;
}

/* main thumbnail image */
.thumb-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    inset: 0;
    object-fit: cover;
}

/* wide images: fill height, crop left/right minimally */
.thumb-img.thumb-wide {
    height: 100%;
    width: auto;
}

/* for vertical/square — center horizontally */
.thumb-img.thumb-vertical {
    width: auto;
    height: 100%;
}

/* --- HD BADGE --- */
.hd-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 212, 255, 0.9);
    color: #0a0e27;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* mobile tighten */
@media (max-width: 480px) {
    .hd-badge {
        padding: 1px 4px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }
}

/* --- INFO AREA --- */
.model-info {
    background: rgba(10, 14, 39, 0.8);
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    color: #fff;
    font-size: 14px;
}

.model-name {
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary);
    font-weight: 500;
}

.eye-icon {
    margin-right: 4px;
}

/* --- CTA BUTTON --- */
.cta-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 14px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.cta-dot {
    font-size: 14px;
    margin-right: 4px;
    color: var(--primary);
}


.cta-mini {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px var(--glow-cyan);
    margin: auto;
}

.close {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
}

.close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 212, 255, 0.05);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    margin: 0;
    text-shadow: 0 0 10px var(--glow-cyan);
}

.modal-body {
    padding: 1.5rem;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.urgency-text {
    color: var(--primary-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    box-shadow: 0 10px 35px var(--glow-cyan);
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px var(--glow-purple), 0 0 60px var(--glow-cyan);
}

.cta-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--glow-cyan);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--border);
    margin-top: 3rem;
    background: rgba(21, 25, 51, 0.5);
}

.footer p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Adblock Warning */
.adblock-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffc107;
    font-size: 0.9rem;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-close {
    background: none;
    border: none;
    color: #ffc107;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.warning-close:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .adblock-warning {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
    
    .warning-icon {
        font-size: 1rem;
    }
    
    .warning-close {
        font-size: 1.3rem;
        width: 25px;
        height: 25px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-profile {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-tagline {
        font-size: 0.8rem;
    }
    
    .bluesky-link {
        font-size: 0.85rem;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .iframe-container {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
    
    .online-count {
        padding: 0.5rem 0.75rem;
    }
    
    .online-count p {
        font-size: 0.8rem;
    }
    
    .online-count .count-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .header-profile {
        width: 45px;
        height: 45px;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    .modal-header {
        padding: 0.6rem 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 0.4rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cta-platform-icon {
        width: 20px;
        height: 20px;
    }
    
    .close {
        font-size: 1.4rem;
    }
}
