/* 
 * Bali.day - Tropical Minimalism Custom Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --color-bg: #F9F8F6; /* Warm off-white / soft sand cream */
    --color-text: #1E352F; /* Deep forest moss green */
    --color-accent: #E5A93C; /* Muted marigold / warm terracotta */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Details */
    --glass-bg: rgba(249, 248, 246, 0.7);
    --glass-blur: blur(12px);
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(30, 53, 47, 0.08);
}

/* -----------------------------
   GLOBAL WATERCOLOR OVERRIDES
   ----------------------------- */
body, body.custom-background {
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(70, 130, 180, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(34, 139, 34, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(229, 169, 60, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #FDFBF7 0%, #F5F1E7 100%) !important;
    background-color: #FDFBF7 !important;
    background-attachment: fixed !important;
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Enforce Playfair Display globally */
h1, h2, h3, h4, h5, h6, 
.site-title, .widget-title, .entry-title, .menu-item a {
    font-family: var(--font-heading) !important;
    color: var(--color-text);
}

/* Watercolor Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px 12px 32px 16px; /* Organic hand-painted feel */
    box-shadow: 0 12px 40px rgba(30, 53, 47, 0.06);
}

/* Modern Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    padding: 24px;
}

.bento-item {
    border-radius: 24px 12px 32px 16px; /* Organic shape */
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-radius: 12px 24px 16px 32px; /* Fluid motion on hover */
}

.bento-content {
    padding: 20px;
    margin: 15px;
    border-radius: 20px 8px 24px 12px;
}

/* Organic Buttons */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 24px 8px 24px 8px; /* Organic shape */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    border-radius: 8px 24px 8px 24px; /* Fluid hover */
    opacity: 0.9;
    transform: translateY(-2px);
}

/* -----------------------------
   HERO SECTION
   ----------------------------- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30,53,47,0.3) 0%, rgba(249,248,246,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-bg);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-bg);
    margin-bottom: 50px;
    font-weight: 300;
}

/* -----------------------------
   SMART SEARCH BAR
   ----------------------------- */
.smart-search-bar {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 50px;
    background: rgba(249, 248, 246, 0.85);
}

.search-form-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.search-input-group {
    flex: 1;
    padding: 10px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.search-input-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.clean-dropdown, .clean-input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.search-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(30, 53, 47, 0.1);
}

.btn-search-icon {
    background-color: var(--color-accent);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 10px;
}

.btn-search-icon:hover {
    transform: scale(1.05);
}

/* -----------------------------
   BENTO GRID REFINEMENTS
   ----------------------------- */
.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

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

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,53,47,0.8) 0%, transparent 60%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin: 15px;
    border-radius: calc(var(--border-radius) - 4px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.bento-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.9;
}

.bento-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: white;
}

.btn-circular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary-small {
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .search-form-flex {
        flex-direction: column;
    }
    .search-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
    .btn-search-icon {
        width: 100%;
        border-radius: 25px;
        margin: 10px 0 0 0;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-medium, .bento-small {
        grid-column: span 1;
        min-height: 300px;
    }
}

/* -----------------------------
   WATERCOLOR FOOTER
   ----------------------------- */
.watercolor-footer {
    position: relative;
    padding: 100px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(229, 169, 60, 0.15) 100%);
    overflow: hidden;
    margin-top: 80px;
}

.footer-wash-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 100%, rgba(70, 130, 180, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(34, 139, 34, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 30px;
    font-family: var(--font-heading) !important;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.6;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}
