/* Flash Image Preview - Main CSS */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Orange Active Style Color Scheme */
    --primary: #ea580c;
    --primary-light: #f97316;
    --primary-dark: #c2410c;
    --secondary: #fb923c;
    --background: #fff7ed;
    --surface: #ffffff;
    --text: #9a3412;
    --text-light: #ea580c;
    --text-dark: #7c2d12;
    --border: #fed7aa;
    --shadow: rgba(234, 88, 12, 0.1);
    --gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.125rem;
}

/* Header & Navigation */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav {
    padding: var(--spacing-sm) 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand .logo img {
    width: 32px;
    height: 32px;
    margin-right: var(--spacing-xs);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
}

.nav-list a {
    color: var(--text);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-list a:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.game-container {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px var(--shadow);
}

.game-container h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.game-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: var(--spacing-md);
}

.game-description {
    color: var(--text);
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--background);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.feature-link:hover {
    color: var(--primary-dark);
}

/* Tools Showcase */
.tools-showcase {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.tool-category {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 5px 20px var(--shadow);
}

.tool-category h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.tool-list {
    list-style: none;
}

.tool-list li {
    margin-bottom: var(--spacing-sm);
}

.tool-list a {
    color: var(--text);
    padding: var(--spacing-sm);
    display: block;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.tool-list a:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Gallery Preview */
.gallery-preview {
    padding: var(--spacing-2xl) 0;
    background: var(--surface);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.gallery-actions {
    text-align: center;
}

/* Blog Preview */
.blog-preview {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.blog-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-content h3 {
    margin-bottom: var(--spacing-sm);
}

.blog-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

.blog-actions {
    text-align: center;
}

/* CTA Section */
.cta {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta .btn-primary:hover {
    background: var(--background);
    color: var(--primary-dark);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-legal p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0,0,0,0.5);
        --border: #333;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --surface: #2a2a2a;
        --text: #e5e5e5;
        --text-light: #f0f0f0;
        --text-dark: #ffffff;
        --border: #404040;
        --shadow: rgba(0,0,0,0.3);
    }
}