
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --primary-bg: #f4f6f9;
    --card-bg: #ffffff;
    --header-bg: #1a2c4e;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    
    --brand-blue: #2c84e9;
    --brand-blue-hover: #1a6fd0;
    --brand-green: #28a745;
    --brand-green-hover: #218838;
    
    --accent-gradient: linear-gradient(135deg, #2c84e9 0%, #00d2ff 100%);
    --promocode-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    
    /* Typography */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 32px rgba(44, 132, 233, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* =========================================
   2. Layout & Header
   ========================================= */
#main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    height: 3.5rem; /* ~56px */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition);
}

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

.m-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: flex-end;
}

/* Navigation */
.main-menu__inner {
    display: flex;
    align-items: center;
}

.main-menu__list {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.main-menu__list_m {
    display: none; /* Hide mobile menu on desktop */
}

.main-menu__list li a {
    position: relative;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.main-menu__list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: var(--transition);
}

.main-menu__list li a:hover {
    color: var(--brand-blue);
}

.main-menu__list li a:hover::after {
    width: 100%;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.search-form form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(44, 132, 233, 0.3);
}

.search-form__field {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-form__field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form__button {
    background: var(--brand-blue);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.search-form__button:hover {
    background-color: var(--brand-blue-hover);
    transform: rotate(90deg);
}

/* =========================================
   3. Main Content
   ========================================= */
.main-box {
    padding: 3rem 0;
    flex: 1;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* Article Styles */
.content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.single__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--header-bg);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.single__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.entry p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.entry h2, .entry h3 {
    color: var(--header-bg);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.entry h2 {
    font-size: 1.8rem;
    text-align: left !important; /* Override inline styles */
    border-left: 5px solid var(--brand-blue);
    padding-left: 1rem;
}

.entry h3 {
    font-size: 1.4rem;
}

/* Lists styling within article */
.entry ul {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.entry ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.entry ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Image Enhancements */
.entry img, .aligncenter {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    display: block;
    max-width: 100% !important;
    height: auto !important;
    transition: var(--transition);
}

.entry img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.wp-caption {
    text-align: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Links inside content */
.entry a {
    color: var(--brand-blue);
    font-weight: 600;
    position: relative;
}

.entry a:hover {
    color: var(--brand-blue-hover);
    text-decoration: underline;
}

/* =========================================
   4. Sidebar & Widgets
   ========================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget_custom_html {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--brand-green);
}

.widget_custom_html .title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--header-bg);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Promocode Widget Styling */
.promocode-style {
    background: var(--primary-bg);
    border: 2px dashed var(--brand-blue);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--header-bg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.promocode-style:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(44, 132, 233, 0.4);
}

.promocode-style::before {
    content: 'COPY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.promocode-style:active {
    transform: scale(0.98);
}

/* =========================================
   5. Footer
   ========================================= */
.footer {
    background-color: var(--header-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.copy {
    line-height: 1.8;
}

/* =========================================
   6. Social Buttons (Uptolike override)
   ========================================= */
.uptolike-buttons {
    margin-top: 2rem;
    justify-content: center;
}

/* =========================================
   7. Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr; /* Stack layout on tablets */
    }
    
    .sidebar {
        order: 2; /* Sidebar below content */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .logo {
        height: 3rem;
    }
}

@media (max-width: 768px) {
    .header .wrapper {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .m-nav {
        width: 100%;
        flex-direction: column-reverse; /* Search on top of menu or vice versa */
        gap: 1rem;
    }
    
    .search-form, .search-form form, .search-form__field {
        width: 100%;
    }

    /* Mobile Menu Logic */
    .main-menu__list {
        display: none; /* Hide desktop list */
    }
    
    .main-menu__list_m {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .main-menu__list_m li a {
        display: block;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .main-menu__list_m li a:hover,
    .main-menu__list_m li.current-menu-item a {
        background: var(--brand-blue);
        color: white;
    }

    .content {
        padding: 1.5rem;
    }
    
    .entry h2 {
        font-size: 1.4rem;
    }
    
    .single__title {
        font-size: 1.8rem;
    }
}
