:root {
    --background: 0 0% 100%;
    --foreground: #364958;
    --primary-color: #252525;
    --secondary-color: #1a1a1a;
    --text-color: #fff;
    --light-text: #fff;
    --light-bg: #f8f9fa;
    --font-serif: "Times New Roman", Times, serif;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --accent-color: #5f7470;
}

body {
    font-family: var(--font-sans);
    background-color: var(--foreground);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Mobile-first approach */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }

.nav-link {
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: var(--accent-color) !important;
    }

.navbar-brand {
    margin-right: 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-size: 0.9rem;
    text-transform: lowercase;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.triangle-logo {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}

/* Mobile menu adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-toggler {
        border: none;
        padding: .25rem .5rem;
        font-size: 1rem;
    }

        .navbar-toggler:focus {
            box-shadow: none;
            outline: none;
        }
}

.hero-section {
    /*background-image: url('/api/placeholder/1440/800');*/
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(173,216,230,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #252525;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #252525;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-custom:hover {
        background-color: #2c5fc7;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(61, 124, 244, 0.2);
    }

.section {
    padding: 3rem 0;
}

.section-dark {
    background-color: #1a1a1a;
    color: white;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #252525;
    text-align: center;
}

.section-title-light {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.category-tab {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

    .category-tab:hover, .category-tab.active {
        background-color: var(--accent-color);
        color: white;
    }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: white;
    height: 100%;
    position: relative;
}

    .image-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.image-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-card-content {
    padding: 1rem;
}

.image-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-card-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.image-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

.footer {
    background-color: #fff;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin: 0 0.5rem 0.5rem;
    }

    .footer-links a {
        color: #555;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--accent-color);
        }

.social-icon {
    color: #252525;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

    .social-icon:hover {
        color: var(--accent-color);
    }

.triangle-logo {
    width: 40px;
    height: 40px;
}

.section-box {
    background-color: #f8f9fa;
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(61, 124, 244, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-container {
    max-width: 600px;
    margin: auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #eee;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(61, 124, 244, 0.1);
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    border: none;
    background: #fff;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}


/* Media queries for responsive design */
@media (min-width: 576px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-content {
        max-width: 80%;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .features-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 70%;
    }

    .section {
        padding: 5rem 0;
    }

    .navbar-nav {
        margin-left: auto;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy loading styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-loaded {
    opacity: 1;
}

/* Custom component styles for ImageShop - FLUX.1 Kontext Theme */
/* Add this to your wwwroot/css/site.css or create a new CSS file */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    /* Hero Section Components */
    .hero-section {
        @apply min-h-screen bg-gradient-to-br from-forest-dark via-forest-medium to-forest-light relative overflow-hidden;
    }

    .hero-content {
        @apply relative z-10 text-center px-4 max-w-4xl mx-auto;
    }

    .hero-title {
        @apply text-4xl md:text-6xl lg:text-7xl font-bold mb-6;
        background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #3b82f6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-subtitle {
        @apply text-lg md:text-xl text-gray-300 mb-8 max-w-2xl mx-auto leading-relaxed;
    }

    /* Card Components */
    .image-card {
        @apply bg-card-bg border border-border-dark rounded-xl overflow-hidden transition-all duration-300 hover:shadow-2xl hover:border-accent-green/30 group;
    }

    .image-card-img {
        @apply w-full h-48 object-cover transition-transform duration-300 group-hover:scale-105;
    }

    .image-card-content {
        @apply p-4;
    }

    .image-card-title {
        @apply text-white font-semibold mb-2 group-hover:text-accent-green transition-colors duration-200;
    }

    .image-card-price {
        @apply text-accent-green font-bold text-lg mb-2;
    }

    .image-card-meta {
        @apply text-text-muted text-sm flex justify-between items-center;
    }

    /* Feature Cards */
    .feature-card {
        @apply bg-card-bg border border-border-dark rounded-xl p-6 text-center transition-all duration-300 hover:shadow-xl hover:border-accent-green/30 hover:-translate-y-1;
    }

    .feature-icon {
        @apply w-16 h-16 mx-auto mb-4 bg-gradient-to-br from-accent-green to-accent-blue rounded-full flex items-center justify-center text-forest-dark text-2xl font-bold;
    }

    .feature-title {
        @apply text-white font-semibold text-lg mb-2;
    }

    .feature-description {
        @apply text-text-muted text-sm leading-relaxed;
    }

    /* Button Components */
    .btn-primary {
        @apply bg-accent-green text-forest-dark px-6 py-3 rounded-lg font-semibold transition-all duration-200 hover:bg-green-400 hover:shadow-lg hover:-translate-y-0.5 active:translate-y-0;
    }

    .btn-secondary {
        @apply bg-transparent border border-accent-green text-accent-green px-6 py-3 rounded-lg font-semibold transition-all duration-200 hover:bg-accent-green hover:text-forest-dark hover:shadow-lg;
    }

    .btn-outline {
        @apply bg-transparent border border-border-dark text-white px-6 py-3 rounded-lg font-semibold transition-all duration-200 hover:bg-white hover:text-forest-dark hover:shadow-lg;
    }

    /* Form Components */
    .input-field {
        @apply w-full bg-card-bg border border-border-dark text-white rounded-lg px-4 py-3 focus:outline-none focus:border-accent-green focus:ring-2 focus:ring-accent-green/20 transition-all duration-200;
    }

    .search-container {
        @apply relative max-w-md my-10;
    }

    .search-input {
        @apply w-full bg-card-bg border border-border-dark text-white rounded-full pl-12 pr-4 py-3 focus:outline-none focus:border-accent-green focus:ring-2 focus:ring-accent-green/20 transition-all duration-200;
    }

    .search-icon {
        @apply absolute left-4 top-1/2 transform -translate-y-1/2 text-text-muted;
    }

    /* Category Tabs */
    .category-tabs {
        @apply flex flex-wrap justify-center gap-2 mb-8;
    }

    .category-tab {
        @apply px-4 py-2 bg-card-bg border border-border-dark text-text-muted rounded-full text-sm font-medium transition-all duration-200 hover:text-white hover:border-accent-green;
    }

        .category-tab.active {
            @apply bg-accent-green text-forest-dark border-accent-green;
        }

    /* Grid Layouts */
    .image-grid {
        @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6;
    }

    .feature-grid {
        @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
    }

    /* Loading and Animation Components */
    .loading-spinner {
        @apply inline-block w-6 h-6 border-2 border-accent-green border-t-transparent rounded-full animate-spin;
    }

    .pulse-dot {
        @apply w-3 h-3 bg-accent-green rounded-full animate-pulse;
    }

    /* Section Components */
    .section {
        @apply py-16 px-4;
    }

    .section-title {
        @apply text-3xl md:text-4xl lg:text-5xl font-bold text-center mb-6;
        background: linear-gradient(135deg, #ffffff 0%, #22c55e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-subtitle {
        @apply text-lg text-text-muted text-center mb-12 max-w-2xl mx-auto;
    }

    /* Modal Components */
    .modal-overlay {
        @apply fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center;
    }

    .modal-content {
        @apply bg-card-bg border border-border-dark rounded-xl max-w-md w-full mx-4 overflow-hidden;
    }

    .modal-header {
        @apply px-6 py-4 border-b border-border-dark;
    }

    .modal-body {
        @apply px-6 py-4;
    }

    .modal-footer {
        @apply px-6 py-4 border-t border-border-dark flex justify-end space-x-3;
    }

    /* Shopping Cart Badge */
    .cart-badge {
        @apply absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center font-medium;
    }

    /* Gradient Text */
    .gradient-text {
        background: linear-gradient(135deg, #ffffff 0%, #C9E4CA 50%, #87BBA2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Glass Effect */
    .glass-effect {
        @apply bg-white/5 backdrop-blur-md border border-white/10;
    }

    /* Utility Classes */
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .border-gradient {
        position: relative;
    }

        .border-gradient::before {
            content: '';
            position: absolute;
            inset: 0;
            padding: 1px;
            background: linear-gradient(135deg, #C9E4CA, #87BBA2);
            border-radius: inherit;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: xor;
        }
}

@layer utilities {
    /* Custom animations */
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }

    .animate-glow-pulse {
        animation: glow-pulse 2s ease-in-out infinite alternate;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    @keyframes glow-pulse {
        0% {
            box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
        }

        100% {
            box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
        }
    }

    /* Scrollbar Styling */
    .scrollbar-thin {
        scrollbar-width: thin;
        scrollbar-color: #374151 #1f2937;
    }

        .scrollbar-thin::-webkit-scrollbar {
            width: 6px;
        }

        .scrollbar-thin::-webkit-scrollbar-track {
            background: #1f2937;
        }

        .scrollbar-thin::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 3px;
        }

            .scrollbar-thin::-webkit-scrollbar-thumb:hover {
                background: #22c55e;
            }
}