﻿/* --- Basic Setup --- */
:root {
    --primary-color: #f0f0f0;
    --secondary-color: #1f1f2e; /* Dark purple bg */
    --accent-color: #f97316; /* Bright orange */
    --accent-color-light: #fb923c; /* Lighter orange */
    --bg-color-dark: #2a2a3a; /* Main dark bg */
    --card-color: #3a3a4a; /* Darker card bg */
    /* Your requested fonts */
    --font-heading: 'Caveat Brush', cursive;
    /* FIX: Use a readable font for paragraphs */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    /* Dark background gradient */
    background-color: var(--bg-color-dark);
    background-image: radial-gradient(circle, #4a4a6a 0%, var(--bg-color-dark) 100%);
    background-attachment: fixed;
    color: var(--primary-color);
    line-height: 1.6;
}

/* --- Main Content Wrappers --- */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 10px;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Style sections on index.html as cards */
section {
    padding: 30px;
    background-color: rgba(40, 40, 60, 0.7); /* Semi-transparent card */
    border-radius: 8px;
    margin-bottom: 25px;
    border-bottom: none;
}

    section h1 {
        margin-top: 0;
    }

    section#home {
        /* Hero section has no card background */
        background-color: transparent;
        border-bottom: none;
        padding: 40px 20px;
        text-align: center;
    }

h1, h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    color: #fff;
}

a {
    color: var(--accent-color-light);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 1rem 2rem;
    border-bottom: none;
}

    nav .nav-brand {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        font-weight: normal;
        color: #fff;
    }

        nav .nav-brand:hover {
            text-decoration: none;
            color: var(--accent-color-light);
        }

    nav ul {
        list-style: none;
        display: flex;
        gap: 1.5rem;
        margin: 0;
        padding: 0;
    }

        nav ul li a {
            font-family: var(--font-heading);
            font-size: 1.2rem;
            font-weight: normal;
            color: var(--primary-color);
        }

            nav ul li a:hover {
                color: var(--accent-color-light);
                text-decoration: none;
            }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid var(--card-color);
}

/* --- Button Style --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: normal;
    border: 2px solid var(--accent-color-light);
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .cta-button:hover {
        background-color: var(--accent-color-light);
        text-decoration: none;
    }

/* --- Gallery Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}


/* Make the home page preview grid smaller */
#gallery-preview .gallery-grid {
    /* This creates columns that are 150px wide and won't grow */
    grid-template-columns: repeat(auto-fit, 150px);
    
    /* This centers the grid container */
    justify-content: center; 
    
    gap: 15px;
}

/* Gallery Card Style */
.gallery-card {
    position: relative;
    background-color: var(--card-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Gallery Tab Style */
.gallery-tab {
    position: absolute;
    top: -16px;
    left: 15px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color-light);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1rem;
}

.gallery-item {
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .gallery-item:hover {
        transform: scale(1.03);
    }

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Form Styles (for dark mode) --- */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #5a5a6a;
        background-color: #3a3a4a;
        color: #f0f0f0;
        border-radius: 5px;
        box-sizing: border-box;
        font-family: var(--font-body);
        font-size: 1rem;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #aaa;
        }

/* --- Commissions Page --- */
/* This is the base style */
.commission-status {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: normal;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

/* This adds the green color */
.commission-status.comm-open {
    color: #86efac; 
    background-color: #1a4a2a; 
}

/* This adds the red color */
.commission-status.comm-closed {
    color: #f87171; 
    background-color: #4a1a1a; 
}

/* --- Contact Page --- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

    .social-links a {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        background-color: var(--card-color);
        padding: 8px 15px;
        border-radius: 5px;
        border: 1px solid #5a5a6a;
    }

        .social-links a:hover {
            background-color: #5a5a6a;
            text-decoration: none;
            color: var(--accent-color-light);
        }
