@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@font-face {
    font-family: Proxima;
    font-weight: 400;
    src: url(../fonts/ProximaNovaRegular.woff2) format('woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Tondu;
    font-weight: 400;
    src: url(../fonts/Tondu-Beta.woff2) format('woff2');
    font-style: normal;
    font-display: swap;
}




:root {
    --primary-bg: #f8fafc;
    --secondary-color: #114734;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --accent-color: #6366f1;
    --navbar-height: 70px;
    --heading-font: Tondu;
    --body-font: Proxima;
    --third-font: Playfair Display;
    --heading-size-h1: clamp(36px, 5vw, 68px);
}

.third-font {
    font-family: var(--third-font);
}

.body-font {
    font-family: var(--body-font);
}

.logo-area img {
    width: 100% !important;
    height: auto !important;
}

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

h1 {
    font-size: var(--heading-size-h1);
    font-weight: 900 !important;
}

h2 {
    font-size: var(--heading-size-h1);
    font-weight: 900 !important;
    color: var(--secondary-color);
}

.padding-top-50 {
    padding-top: 50px;
}

.font-style-italic {
    font-style: italic;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

body {
    font-family: var(--body-font);
    background-color: var(--primary-bg);
    color: #1e293b;
    margin: 0;
    padding: 0;
}

.btn-primary {
    background-color: var(--secondary-color) !important;
    font-family: var(--body-font) !important;
    font-weight: 400 !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    border-radius: 100px !important;
    font-size: 14px;
    transition: all 0.3s ease !important;
    border: none;
    padding: 12px 28px;
}

/* Footer */
footer.py-5 {
    margin-top: 0px !important;
}

.btn-primary:hover {
    background-color: #0c3325 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 71, 52, 0.2);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 20px;
    position: relative;
}

header .logo {
    max-width: 150px;
    width: 100% !important;
    height: auto;
}

header .dripping {
    width: 175px;
    position: absolute;
    bottom: -78px;
    left: 25;
    z-index: 1;
}

header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-link {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.header-link:hover {
    color: #fff;
    opacity: 0.8;
}

.header-btn {
    background: #fff;
    color: #114734;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--body-font);
}

.header-btn:hover {
    background: #e2e8f0;
    color: #114734;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    header .container-fluid {
        padding: 15px 20px;
    }

    .nav-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 2001;
        padding: 10px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #114734;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: scale(1.1);
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .header-link {
        font-size: 28px !important;
        color: #fff !important;
        font-family: var(--heading-font) !important;
    }

    .header-btn {
        background: #fff !important;
        color: #114734 !important;
        font-size: 18px !important;
        padding: 18px 45px !important;
        margin-top: 20px;
    }

    header {
        padding: 0;
    }
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   HOMEPAGE STYLES (Trending Slider)
   ========================================================================== */
.trending-section {
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.trending-slider {
    margin-top: 20px;
}

.slide-item {
    padding: 40px 10px;
    outline: none;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.15;
    transform: scale(0.6);
}

.slide-item.slick-center {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.slide-card {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.slide-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 30px;
}

.slide-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
}

.shadow-layer {
    mix-blend-mode: soft-light;
    z-index: 11;
}

.slide-info {
    opacity: 0;
    transition: all 0.5s;
    transform: translateY(10px);
}

.slide-item.slick-center .slide-info {
    opacity: 1;
    transform: translateY(0);
}

.slide-rank {
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.rank-1 {
    color: #d4a017;
    font-size: 1rem;
    border-bottom: 2px solid #d4a017;
    display: inline-block;
    padding-bottom: 2px;
    text-shadow: 0 5px 15px rgba(212, 160, 23, 0.2);
}

.rank-2 {
    color: #94a3b8;
}

.rank-3 {
    color: #b45309;
}

.rank-other {
    color: #64748b;
}

.slide-title {
    font-family: var(--heading-font);
    font-weight: 900;
    color: #114734;
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.slide-author {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: lowercase;
    font-style: italic;
    margin-bottom: 15px;
}

.slide-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.slide-action-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.slide-action-btn:hover {
    color: #114734;
}

.slide-action-btn i {
    font-size: 0.85rem;
}

/* Custom Minimal Arrows */
.slick-prev,
.slick-next {
    width: 44px;
    height: 44px;
    background: #fff !important;
    border: 1px solid #114734 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s;
    top: 40%;
}

.slick-prev:hover,
.slick-next:hover {
    background: #114734 !important;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: #fff;
}

.slick-prev:before,
.slick-next:before {
    content: '' !important;
    color: #114734;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slick-prev:before {
    content: '\f053' !important;
}

.slick-next:before {
    content: '\f054' !important;
}

.slick-prev {
    left: 60px;
}

.slick-next {
    right: 60px;
}

@media (max-width: 1400px) {
    .slick-prev {
        left: 30px;
    }

    .slick-next {
        right: 30px;
    }
}

@media (max-width: 991px) {
    .slide-item {
        padding: 50px 0;
        opacity: 1;
        transform: scale(1);
    }

    .slick-prev,
    .slick-next {
        width: 38px;
        height: 38px;
        left: 15px;
        right: 15px;
        top: 35%;
    }

    .slick-next {
        right: 15px;
        left: auto;
    }

    .slick-prev:before,
    .slick-next:before {
        font-size: 12px;
    }
}

@media (max-width: 576px) {

    .slick-prev,
    .slick-next {
        display: none !important;
    }
}

/* ==========================================================================
   CUSTOMIZER STYLES (create.php)
   ========================================================================== */
.create-page {
    background-color: #fff;
}

.customizer-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.customizer-sidebar {
    flex: 0 0 220px;
    sticky: top 130px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
}

.customizer-sidebar::-webkit-scrollbar {
    width: 4px;
}

.customizer-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.customizer-main {
    flex: 1;
    text-align: center;
}

.roll-preview-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

.base-layer {
    z-index: 5;
}

.topping-layer {
    z-index: 11;
}

.topping-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: start;
}

.topping-item {
    flex: 0 0 calc(50% - 10px);
    cursor: pointer;
    text-align: center;
    padding: 5px;
    transition: all 0.3s ease;
}

.topping-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.topping-item:hover .topping-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topping-item.active .topping-icon {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.topping-name {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    text-transform: capitalize;
    display: block;
    font-family: var(--third-font);
}

.mobile-category-nav {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.mobile-category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #114734;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    background: #114734;
    color: #fff;
    border-color: #114734;
    box-shadow: 0 4px 10px rgba(17, 71, 52, 0.2);
}

.publish-form .form-control {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.publish-form .form-control:focus {
    box-shadow: 0 0 0 4px rgba(17, 71, 52, 0.1);
    border-color: var(--secondary-color);
}

@media (max-width: 1200px) {
    .customizer-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left-sidebar {
        order: 1;
    }

    .right-sidebar {
        order: 2;
    }

    .customizer-main {
        order: 3;
        margin: 30px 0;
    }

    .customizer-sidebar {
        flex: none;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 0;
    }

    .topping-options {
        justify-content: center;
        overflow-x: auto;
        flex-wrap: wrap;
        padding-bottom: 20px;
        scrollbar-width: none;
    }

    .topping-item {
        flex: 0 0 85px;
    }

    .option-category h5 {
        display: none !important;
    }

    .mobile-category-nav {
        display: block;
        text-align: center;
    }

    .mobile-category-nav .px-2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .option-category {
        display: none;
    }

    .option-category.active-category {
        display: block;
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   GALLERY STYLES (creations.php)
   ========================================================================== */
.gallery-page {
    background-color: #fdfdfd;
}

.creation-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.creation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.creation-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.creation-preview .layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.creation-info {
    padding: 20px;
    text-align: center;
}

.creation-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: #114734;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.creation-author {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.vote-btn {
    background: #fff;
    border: 2px solid #fee2e2;
    border-radius: 50px;
    color: #ef4444;
    font-weight: 700;
    padding: 10px 25px;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.vote-btn.voted {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    pointer-events: none;
}

.vote-count {
    margin-left: 10px;
    font-size: 1.1rem;
}

.page-header {
    background: #114734;
    padding: 100px 0 150px;
    position: relative;
    color: white;
    overflow: hidden;
}

.page-header h1 {
    font-family: var(--heading-font);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.header-dripping {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
    opacity: 0.1;
}

#lightbox-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #114734;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.rank-gold {
    background: #facc15;
    border-color: #fef08a;
    color: #854d0e;
}

.rank-silver {
    background: #94a3b8;
    border-color: #cbd5e1;
    color: #1e293b;
}

.rank-bronze {
    background: #b45309;
    border-color: #d97706;
    color: white;
}