
:root {
    /* Color Palette */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #10b981;
    --background-body: #0f172a;
    --background-card: #1e293b;
    --background-input: #334155;
    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    
    /* Spacing & Sizes */
    --container-width: 75rem;
    --header-height: 5rem;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.375rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Layout Wrapper */
#main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper, .content-wrapper {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 1.5rem;
}

/* Header Styles */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    display: flex;
    justify-content: center;
}

/* Inner header layout handled by flex on contents if needed, 
   but structure implies wrapper inside header or adjacent. 
   Adjusting based on provided HTML structure where header contains wrapper contents visually. */

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

.logo {
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.m-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.search-form form {
    display: flex;
    align-items: center;
    background: var(--background-input);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.search-form form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-form__field {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.9rem;
    width: 12rem;
}

.search-form__field::placeholder {
    color: var(--text-secondary);
}

.search-form__button {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.search-form__button::after {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
}

.search-form__button::before {
    content: '';
    width: 2px;
    height: 0.5rem;
    background: white;
    position: absolute;
    bottom: 0.45rem;
    right: 0.45rem;
    transform: rotate(-45deg);
}

.search-form__button:hover {
    background: var(--primary-hover);
}

/* Navigation */
.sticky_menu {
    /* Handled by header fixed position mostly, but strictly for nav */
}

.main-menu__list {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

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

.menu-item a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.5rem 0;
}

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-item a:hover {
    color: var(--primary-color);
}

.menu-item a:hover::after {
    width: 100%;
}

/* Main Content Area */
.main-box {
    margin-top: calc(var(--header-height) + 2rem);
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

.content {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.single__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

/* Typography in Content */
.entry p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry h2 {
    color: var(--text-main);
    font-size: 1.75rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

.entry h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--gradient-brand);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.entry a {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
}

.entry a:hover {
    color: var(--secondary-color);
    border-bottom-style: solid;
}

/* Images Styling */
.entry img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    transition: transform 0.4s ease;
}

.entry img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--background-body);
}

thead {
    background: var(--background-input);
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Promo Code Highlight in Table */
td:first-child {
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .wrapper {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .m-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    .header {
        position: relative;
        padding: 1rem 0;
    }

    .header .wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .m-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-form form {
        width: 100%;
    }
    
    .search-form__field {
        width: 100%;
        min-width: 15rem;
    }

    /* Navigation on mobile */
    .main-menu__list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    /* Using the mobile list if preferred, but styling the main one to adapt is cleaner */
    .main-menu__inner {
        width: 100%;
    }

    .content {
        padding: 1.5rem;
    }

    /* Table scrolling for mobile */
    .entry table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .entry img {
        width: 100%;
        height: auto;
    }
}

/* Buttons Gradient Effect Override for specific links if needed */
.btn-gradient {
    background: var(--gradient-brand);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-gradient:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}
