/* ==== Cake Market.lk Premium Cake Theme ==== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #00BFFF; /* Deep Sky Blue for accents */
    --primary-dark: #009ACD; 
    --bg-color: #FFD700; /* Beautiful Yellow Gold background */
    --dark-color: #222222; /* Dark text for high contrast */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 229, 255, 0.2);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==== Navbar ==== */
.navbar {
    /* Beautiful Sky theme: mixing sky blue, dark blue, and a subtle clouds image */
    background: linear-gradient(to right, rgba(135, 206, 235, 0.85) 0%, rgba(0, 0, 139, 0.9) 100%), url('https://images.unsplash.com/photo-1499346030926-9a72daac6c63?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 1.2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 4px solid var(--bg-color); /* Yellow Gold line to match body */
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white); /* White logo on the dark/sky background */
    text-decoration: none;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6); /* Heavy shadow to make it pop */
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo span {
    font-style: italic;
    color: var(--bg-color); /* Yellow gold for the .lk */
    background: none;
    -webkit-text-fill-color: var(--bg-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    font-weight: 800;
}

.nav-links a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: var(--white); /* White links on sky background */
    font-weight: 700;
    font-family: var(--font-main);
    transition: var(--transition);
    position: relative;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.nav-links a:not(.btn):hover {
    color: var(--bg-color); /* Yellow gold hover */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); 
}

/* ==== Buttons ==== */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    font-family: var(--font-main);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--dark-color); /* Dark text */
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
    color: var(--dark-color);
}

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

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

/* ==== Hero Section ==== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to the left */
    text-align: left; /* Align text to the left */
    padding-left: 5%; /* Space from the left edge */
    border-radius: 0 0 60px 60px;
    margin-bottom: 4rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Hide scaled background edges */
}

/* Background Slider Animations */
@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1; /* Below the overlay and content */
    animation: slideShow 20s infinite;
}

.hero-bg-1 {
    background-image: url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80'); /* Sunflower */
    animation-delay: 0s;
}
.hero-bg-2 {
    background-image: url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80'); /* Cake */
    animation-delay: 5s;
}
.hero-bg-3 {
    background-image: url('https://images.unsplash.com/photo-1559553156-2e97137af16f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80'); /* Yellow cake */
    animation-delay: 10s;
}
.hero-bg-4 {
    background-image: url('https://images.unsplash.com/photo-1464349095431-e9a21285b5f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80'); /* Beautiful cake */
    animation-delay: 15s;
}

.hero::before {
    /* Subtle dark gradient overlay to make text pop while keeping images highly visible */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0 0 60px 60px;
    z-index: 5; /* Above background, below content */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.1); /* Highly transparent glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff; /* Make text white */
    font-family: var(--font-heading);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* Strong shadow for readability */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9); /* White text */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Search Box Styling */
.search-box {
    background: rgba(255, 255, 255, 0.2); /* Transparent search box */
    padding: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form select,
.search-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-form select:focus,
.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    border-radius: 30px;
    padding: 1rem 2rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    .search-box {
        border-radius: 20px;
    }
    .search-form select,
    .search-form input,
    .search-form button {
        width: 100%;
    }
}

/* ==== Shop Profile UI (shop.html) ==== */
.shop-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 40px 40px;
    margin-bottom: 4rem;
    background-color: #ddd; /* Fallback */
}

.shop-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 40px 40px;
}

.shop-header-content {
    position: absolute;
    bottom: -40px;
    left: 5%;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.shop-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    background: white;
}

.shop-header-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.shop-desc {
    position: absolute;
    bottom: -100px;
    left: 180px; /* Offset past logo */
    max-width: 600px;
    color: #666;
}

.shop-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 8rem; /* Space for offset logo */
}

.shop-flyer {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* ==== Cake Cards ==== */
.cakes-section {
    padding: 3rem 0 5rem;
}

.cakes-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.cake-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.cake-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-color); /* Neon blue line on hover */
}

.cake-image-container {
    height: 220px;
    overflow: hidden;
}

.cake-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cake-card:hover img {
    transform: scale(1.08);
}

.cake-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-link-small {
    color: var(--secondary-color);
    color: #f39c12; /* Darker golden for readability */
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.cake-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cake-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* ==== Forms & Panels ==== */
.panel-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    margin: 3rem auto;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Neon blue line */
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); /* Neon glow */
}

/* ==== Admin Specific ==== */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }

/* Utilities */
.hidden { display: none !important; }
.text-muted { color: #888; }

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    border-radius: 40px 40px 0 0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .shop-body {
        grid-template-columns: 1fr;
        margin-top: 5rem;
    }
    .shop-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        left: 0; width: 100%;
        bottom: -80px;
    }
    .shop-desc {
        position: static;
        margin-top: 1rem;
        padding: 0 1rem;
    }
    .hero-content h1 { font-size: 2.8rem; }
}
