/*
Theme Name: Flavor Weather Theme Pro
Theme URI: https://flavorfactory.dev/weather-theme
Author: Flavor Team
Author URI: https://flavorfactory.dev
Description: A beautiful, modern WordPress theme designed to work perfectly with Flavor Weather Samsung Pro plugin. Features responsive design, beautiful typography, Samsung Weather-inspired aesthetics, and seamless weather integration with full-width layouts.
Version: 7.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-weather-theme
Tags: weather, full-width, responsive, samsung-style, modern

Flavor Weather Theme Pro - Designed for weather websites
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f2f5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER
   ======================================== */
.fwt-header {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.fwt-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fwt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.fwt-logo-icon {
    font-size: 1.6rem;
}

.fwt-logo span {
    font-weight: 300;
    opacity: 0.8;
}

/* Header Navigation */
.fwt-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fwt-nav a {
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.fwt-nav a:hover,
.fwt-nav a.active {
    background: rgba(255,255,255,0.18);
    color: white;
    opacity: 1;
}

/* Header Search */
.fwt-header-search {
    position: relative;
    flex-shrink: 0;
}

.fwt-header-search input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 8px 16px 8px 38px;
    color: white;
    font-size: 0.88rem;
    width: 220px;
    outline: none;
    transition: all 0.3s;
}

.fwt-header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.fwt-header-search input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    width: 280px;
}

.fwt-header-search .search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.7;
}

.fwt-header-search .search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}

.fwt-header-search .search-results-dropdown a {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    font-size: 0.88rem;
    border-bottom: 1px solid #f0f0f0;
}

.fwt-header-search .search-results-dropdown a:hover {
    background: #f5f7fa;
    opacity: 1;
}

.fwt-header-search .search-results-dropdown a:last-child {
    border-bottom: none;
}

.search-result-item .search-city {
    font-weight: 600;
    color: #1565C0;
}

.search-result-item .search-country {
    color: #888;
    font-size: 0.82rem;
}

/* Mobile Menu Toggle */
.fwt-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ========================================
   FOOTER
   ======================================== */
.fwt-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.8);
    padding: 50px 20px 20px;
    margin-top: 0;
}

.fwt-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.fwt-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.fwt-footer-col h3 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.fwt-footer-col ul {
    list-style: none;
    padding: 0;
}

.fwt-footer-col ul li {
    margin-bottom: 8px;
}

.fwt-footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.fwt-footer-col ul li a:hover {
    color: white;
    opacity: 1;
}

.fwt-footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.fwt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.fwt-footer-bottom a {
    color: rgba(255,255,255,0.55);
}

/* ========================================
   MAIN CONTENT (non-weather pages)
   ======================================== */
.fwt-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 50vh;
}

.fwt-main article {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.fwt-main article h1,
.fwt-main article h2 {
    color: #1a1a2e;
    margin-bottom: 16px;
}

.fwt-main article p {
    margin-bottom: 16px;
    color: #555;
}

/* ========================================
   WordPress Core Styles
   ======================================== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption img {
    border-radius: 8px;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    text-align: center;
}

.alignnone { margin: 16px 0; }
.aligncenter { display: block; margin: 16px auto; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }

.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-item { flex: 1 1 auto; }
.gallery-caption { font-size: 0.82rem; color: #888; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* ========================================
   404 Page
   ======================================== */
.fwt-404 {
    text-align: center;
    padding: 80px 20px;
}

.fwt-404 h1 {
    font-size: 5rem;
    color: #1565C0;
    font-weight: 700;
    margin-bottom: 12px;
}

.fwt-404 p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
}

.fwt-404 .btn-home {
    display: inline-block;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fwt-404 .btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21,101,192,0.4);
    opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .fwt-header-inner {
        flex-wrap: wrap;
    }

    .fwt-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        padding-top: 10px;
    }

    .fwt-nav.open {
        display: flex;
    }

    .fwt-nav a {
        padding: 10px 14px;
        border-radius: 8px;
    }

    .fwt-menu-toggle {
        display: block;
    }

    .fwt-header-search input {
        width: 160px;
    }

    .fwt-header-search input:focus {
        width: 200px;
    }

    .fwt-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fwt-main article {
        padding: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .fwt-logo {
        font-size: 1.1rem;
    }

    .fwt-footer-grid {
        grid-template-columns: 1fr;
    }

    .fwt-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .fwt-header,
    .fwt-footer,
    .bottom-nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .fwt-main article {
        box-shadow: none;
        padding: 0;
    }
}
