/* MakersPreview Shared Styles - Redesigned for Glassmorphism */

:root {
    --primary: #3b82f6;
    --secondary: #10b981;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-surface: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-glass: rgba(15, 23, 42, 0.7);
        --border-glass: rgba(255, 255, 255, 0.1);
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --bg-surface: rgba(30, 41, 59, 0.5);
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
                #f8fafc;
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
                    #020617;
    }
}

/* Glass Card Utility */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

/* Hero Section */
.hero-section {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

header {
    position: relative;
    z-index: 1000;
}

.hero-top-links {
    display: flex;
    gap: 0.8rem;
    z-index: 1001;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}

.guide-dropdown {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.guide-current, .region-current {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.guide-current:hover, .region-current:hover {
    color: var(--text-main);
    opacity: 1;
    background: rgba(0, 0, 0, 0.03) !important;
}

@media (prefers-color-scheme: dark) {
    .guide-current:hover, .region-current:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

.guide-options, .region-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.region-dropdown.open .region-options,
.guide-dropdown.open .guide-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-option, .guide-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.region-option:hover, .guide-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.region-option.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-weight: 600;
}

/* Hero Content */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.app-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transition: none !important;
    transform: none !important;
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Sections */
main section {
    padding: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

main section h2 {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Hero Mockup Overrides */
.hero-mockup {
    z-index: 1;
    position: relative;
}

.hero-mockup .carousel-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Screenshots Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: visible !important;
    background: transparent !important;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--border-glass);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.screenshot-item {
    flex: 0 0 100%;
    height: 550px;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: -28px; }
.carousel-btn-next { right: -28px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: var(--border-glass);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 32px;
    background: var(--primary);
}

/* Formats Section */
.supported-formats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.format-badge {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.format-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.format-badge span:first-child {
    color: var(--primary);
}

/* CTA Section */
.cta-section, .purchasing {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent !important;
}

.download-button a {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-button a:hover {
    transform: scale(1.08);
}

.download-button img {
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* About Us Section */
.about-us {
    text-align: center;
    padding-bottom: 4rem;
}

.makerworld-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text .tagline { font-size: 1.2rem; }
    .hero-top-links {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
    }
    .hero-section { padding-top: 2rem; }
    .screenshot-item { height: 350px; }
    .carousel-btn { width: 44px; height: 44px; }
    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }
    .app-icon-large { width: 120px; height: 120px; }
    .format-badge { padding: 0.8rem 1.5rem; }
}
