﻿/* ============================================
   EXCOTIC - Exotic Nature Heritage
   Theme: Light Green, Brown, Yellow Cream
   Elements: Pine Trees, Ocean, Geometric Shapes
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Nature Theme */
    --e-green: #7CB342;
    --e-green-hover: #689F38;
    --e-green-light: #AED581;
    --e-green-dark: #558B2F;
    --e-brown: #8D6E63;
    --e-brown-dark: #6D4C41;
    --e-cream: #F5E6CC;
    --e-cream-dark: #D4B896;
    --e-yellow-cream: #E8D5B7;
    --e-dark: #0d1208;
    --e-dark-lighter: #151a10;
    
    /* Surface Colors */
    --surface: #101408;
    --surface-dim: #0d1208;
    --surface-bright: #2a3020;
    --surface-container: #171d10;
    --surface-container-low: #141910;
    --surface-container-high: #1e2516;
    --surface-container-highest: #282f20;
    
    /* Text Colors */
    --on-surface: #e4e8dc;
    --on-surface-variant: #b8c4a8;
    --primary: #AED581;
    --secondary: #D4B896;
    --outline: #7a8a6a;
    --outline-variant: #3a4530;
    
    /* Ocean Elements */
    --ocean-deep: #0a1a1f;
    --ocean-teal: #26A69A;
    --ocean-wave: #4DB6AC;
    --pine-green: #33691E;
    --sand-warm: #D4A76A;
    
    /* Typography */
    --font-serif: 'Noto Serif', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

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

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

.text-green {
    color: var(--e-green);
}

.text-cream {
    color: var(--e-cream);
}

.text-brown {
    color: var(--e-brown);
}

/* ============================================
   GEOMETRIC DECORATIVE ELEMENTS
   ============================================ */

/* Heritage Divider with Geometric Shape */
.heritage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4rem 0;
}

.heritage-divider::before,
.heritage-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
}

.heritage-divider-icon {
    width: 10px;
    height: 10px;
    background: var(--e-green);
    transform: rotate(45deg);
    margin: 0 16px;
    position: relative;
}

.heritage-divider-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid var(--e-green);
    transform: rotate(0deg);
    opacity: 0.5;
}

/* Geometric Pattern Background - Triangles & Squares */
.geo-pattern {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,10 60,50 20,50' fill='none' stroke='%237CB342' stroke-opacity='0.04' stroke-width='1'/%3E%3Crect x='10' y='55' width='20' height='20' fill='none' stroke='%238D6E63' stroke-opacity='0.03' stroke-width='1'/%3E%3Cpolygon points='55,55 75,55 65,75' fill='none' stroke='%23D4B896' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* Parallelogram Pattern */
.parallelogram-pattern {
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='20,10 80,10 60,50 0,50' fill='none' stroke='%237CB342' stroke-opacity='0.03' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* Pine Tree Decoration */
.pine-decoration {
    position: fixed;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.pine-decoration.top-left {
    top: 80px;
    left: -30px;
    width: 180px;
}

.pine-decoration.bottom-right {
    bottom: 80px;
    right: -30px;
    width: 180px;
    transform: scaleX(-1);
}

/* Ocean Wave Pattern */
.ocean-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='40' viewBox='0 0 200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q25 5 50 20 Q75 35 100 20 Q125 5 150 20 Q175 35 200 20' fill='none' stroke='%2326A69A' stroke-opacity='0.05' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

/* Wood Texture Overlay */
.wood-texture {
    position: relative;
}

.wood-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(141, 110, 99, 0.02) 2px,
        rgba(141, 110, 99, 0.02) 4px
    );
    pointer-events: none;
}

/* Wood Pattern for CTA */
.wood-pattern {
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(141, 110, 99, 0.015) 3px,
            rgba(141, 110, 99, 0.015) 6px
        );
}

/* ============================================
   ANIMATIONS - Unique to Excotic
   ============================================ */

/* Pine Sway Animation */
@keyframes pineSway {
    0%, 100% { transform: rotate(-2deg) translateX(0); }
    25% { transform: rotate(1deg) translateX(3px); }
    50% { transform: rotate(-1deg) translateX(-2px); }
    75% { transform: rotate(2deg) translateX(4px); }
}

/* Ocean Drift Animation */
@keyframes oceanDrift {
    0% { transform: translateX(-100%) scaleY(1); }
    25% { transform: translateX(-25%) scaleY(1.1); }
    50% { transform: translateX(0%) scaleY(0.9); }
    75% { transform: translateX(25%) scaleY(1.05); }
    100% { transform: translateX(calc(100vw + 100px)) scaleY(1); }
}

/* Geometric Rotate */
@keyframes geoRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Triangle Pulse */
@keyframes triPulse {
    0%, 100% { opacity: 0.03; transform: scale(1); }
    50% { opacity: 0.06; transform: scale(1.15); }
}

/* Leaf Fall */
@keyframes leafFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.04; }
    90% { opacity: 0.04; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Wave Horizontal Motion */
@keyframes waveHorizontal {
    0% { background-position-x: 0; }
    100% { background-position-x: 200px; }
}

.animate-pine-sway {
    animation: pineSway 8s ease-in-out infinite;
}

.animate-ocean-drift {
    animation: oceanDrift 25s linear infinite;
}

.animate-geo-rotate {
    animation: geoRotate 30s linear infinite;
}

.animate-tri-pulse {
    animation: triPulse 6s ease-in-out infinite;
}

.animate-leaf-fall {
    animation: leafFall 15s linear infinite;
}

.animate-wave {
    animation: waveHorizontal 8s linear infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--e-green) 0%, var(--e-green-light) 50%, var(--e-green) 100%);
    color: var(--e-dark);
    border-radius: 0.125rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--e-green-hover) 0%, var(--e-green) 50%, var(--e-green-hover) 100%);
    box-shadow: 0 0 30px rgba(124, 179, 66, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--on-surface);
    border: 1px solid var(--outline);
    border-radius: 0.125rem;
}

.btn-secondary:hover {
    border-color: var(--e-green);
    color: var(--e-green);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-radius: 0.125rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--e-green);
    box-shadow: 0 10px 40px -10px rgba(124, 179, 66, 0.1);
}

.card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-container-high);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   MODAL / POPUP
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: 0.25rem;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--on-surface);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--e-green);
    color: var(--e-dark);
}

/* Gallery Slider */
.modal-gallery {
    flex: 1;
    background: var(--surface-container-high);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--e-dark);
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--e-green);
}

.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--e-green);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Form */
.modal-form {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 90vh;
}

/* ============================================
   VARIATION SELECTORS
   ============================================ */
.variation-group {
    margin-bottom: 1.5rem;
}

.variation-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--outline);
    margin-bottom: 0.75rem;
    display: block;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--outline-variant);
    background: transparent;
    color: var(--on-surface);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-btn:hover,
.variation-btn.active {
    border-color: var(--e-green);
    background: rgba(124, 179, 66, 0.1);
    color: var(--e-green);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--outline);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--outline-variant);
    padding: 0.75rem 0;
    color: var(--on-surface);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--e-green);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25D366;
    color: #25D366;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #ff3b30;
    color: #ff3b30;
}

.alert-warning {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    color: #ffcc00;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0.125rem;
}

.badge-gold {
    background: linear-gradient(135deg, var(--e-green), var(--e-green-hover));
    color: var(--e-dark);
}

.badge-outline {
    border: 1px solid var(--e-green);
    color: var(--e-green);
    background: rgba(124, 179, 66, 0.1);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--e-dark);
    border-bottom: 1px solid rgba(174, 213, 129, 0.2);
}

.nav-link {
    color: var(--e-cream);
    text-decoration: none;
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--e-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--e-green);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--e-dark);
    border-top: 1px solid rgba(174, 213, 129, 0.2);
    padding: 4rem 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.green-gradient-text {
    background: linear-gradient(135deg, var(--e-green) 0%, var(--e-green-light) 50%, var(--e-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cream-text {
    color: var(--e-cream);
}

.ambient-glow {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-sidebar {
    background: var(--surface-container);
    border-right: 1px solid var(--outline-variant);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--surface);
}

.admin-card {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: 0.25rem;
    padding: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--outline-variant);
}

.admin-table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--outline);
}

.admin-table tr:hover td {
    background: var(--surface-container-high);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
    }
    
    .gallery-nav {
        display: none;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    .main-nav,
    .main-footer,
    .btn {
        display: none;
    }
}
