/* ==========================================================================
   Warm Linen Lounge - Custom Stylesheet
   Theme ID: linen_cozy
   Layout: Cozy Hearth Portal
   ========================================================================== */

:root[data-theme="linen_cozy"],
body.theme-linen_cozy {
    --th-primary: #c2410c;
    --th-secondary: #b45309;
    --th-accent: #047857;
    --th-bg-main: #fcfaf7;
    --th-bg-surface: #ffffff;
    --th-bg-card: #ffffff;
    --th-text-main: #292524;
    --th-text-subtle: #64748b;
    --th-border: #e2e8f0;
    --th-radius: 16px;
    --th-font-head: 'Outfit', sans-serif;
    --th-font-body: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--th-bg-main) !important;
    color: var(--th-text-main) !important;
    font-family: var(--th-font-body);
}

/* Top Header */
.th-linen_cozy-header {
    background: var(--th-bg-surface);
    border-bottom: 1px solid var(--th-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}
.th-linen_cozy-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.th-linen_cozy-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.th-linen_cozy-logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--th-primary), var(--th-secondary));
    border-radius: var(--th-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.th-linen_cozy-brand-meta {
    display: flex;
    flex-direction: column;
}
.th-linen_cozy-brand-name {
    font-family: var(--th-font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--th-text-main);
    line-height: 1.1;
}
.th-linen_cozy-brand-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--th-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.th-linen_cozy-search-wrap {
    flex: 1;
    max-width: 500px;
}
.th-linen_cozy-search-form {
    position: relative;
    width: 100%;
}
.th-linen_cozy-search-form .search-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--th-text-subtle);
    font-size: 0.95rem;
}
.th-linen_cozy-search-form input {
    width: 100%;
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    color: var(--th-text-main);
    padding: 10px 18px 10px 46px;
    border-radius: var(--th-radius);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.th-linen_cozy-search-form input:focus {
    border-color: var(--th-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}
.th-linen_cozy-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.th-linen_cozy-nav-btn {
    padding: 8px 16px;
    border-radius: var(--th-radius);
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    color: var(--th-text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.th-linen_cozy-nav-btn:hover {
    border-color: var(--th-primary);
    color: var(--th-primary);
}
.th-linen_cozy-btn-accent {
    background: linear-gradient(135deg, var(--th-primary), var(--th-secondary)) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.th-linen_cozy-btn-accent:hover {
    filter: brightness(1.1);
}

/* Main Container */
.th-linen_cozy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero Section */
.th-linen_cozy-hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    padding: 36px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.th-linen_cozy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.15);
    color: var(--th-primary);
    border: 1px solid var(--th-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.th-linen_cozy-hero-title {
    font-family: var(--th-font-head);
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--th-text-main);
}
.th-linen_cozy-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--th-text-subtle);
    margin: 0 0 20px;
}
.th-linen_cozy-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--th-text-subtle);
    font-weight: 600;
    margin-bottom: 24px;
}
.th-linen_cozy-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.th-linen_cozy-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.th-linen_cozy-hero-play-btn {
    background: linear-gradient(135deg, var(--th-primary), var(--th-secondary));
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--th-radius);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s, filter 0.2s;
}
.th-linen_cozy-hero-play-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.th-linen_cozy-hero-browse-btn {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    color: var(--th-text-main);
    padding: 12px 22px;
    border-radius: var(--th-radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.th-linen_cozy-hero-browse-btn:hover {
    border-color: var(--th-primary);
    color: var(--th-primary);
}
.th-linen_cozy-hero-visual {
    border-radius: var(--th-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.th-linen_cozy-hero-card-link {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.th-linen_cozy-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.th-linen_cozy-hero-card-link:hover .th-linen_cozy-hero-img {
    transform: scale(1.05);
}
.th-linen_cozy-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.th-linen_cozy-hero-card-link:hover .th-linen_cozy-hero-overlay {
    opacity: 1;
}
.th-linen_cozy-hero-overlay-tag {
    background: var(--th-primary);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--th-radius);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category Navigation Ribbon */
.th-linen_cozy-category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 35px;
    scrollbar-width: thin;
}
.th-linen_cozy-cat-item {
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    color: var(--th-text-subtle);
    padding: 8px 18px;
    border-radius: var(--th-radius);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.th-linen_cozy-cat-item:hover,
.th-linen_cozy-cat-item.active {
    background: var(--th-primary);
    border-color: var(--th-primary);
    color: #ffffff;
}
.th-linen_cozy-cat-item .cat-count {
    background: rgba(0,0,0,0.15);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Section Titles */
.th-linen_cozy-section {
    margin-bottom: 45px;
}
.th-linen_cozy-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--th-border);
    padding-bottom: 12px;
}
.th-linen_cozy-section-title {
    font-family: var(--th-font-head);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--th-text-main);
}
.th-linen_cozy-section-subtitle {
    font-size: 0.88rem;
    color: var(--th-text-subtle);
    margin: 0;
}
.th-linen_cozy-section-more {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--th-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Games Grid */
.th-linen_cozy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.th-linen_cozy-card {
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.th-linen_cozy-card:hover {
    transform: translateY(-4px);
    border-color: var(--th-primary);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.th-linen_cozy-card-link {
    text-decoration: none;
    display: block;
}
.th-linen_cozy-card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--th-bg-card);
}
.th-linen_cozy-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.th-linen_cozy-card:hover .th-linen_cozy-card-thumb img {
    transform: scale(1.08);
}
.th-linen_cozy-card-play-ico {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.th-linen_cozy-card:hover .th-linen_cozy-card-play-ico {
    opacity: 1;
}
.th-linen_cozy-card-body {
    padding: 12px 14px;
}
.th-linen_cozy-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--th-text-main);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.th-linen_cozy-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--th-text-subtle);
}
.th-linen_cozy-card-meta .card-cat {
    color: var(--th-primary);
    font-weight: 600;
}

/* SEO Guide & FAQ */
.th-linen_cozy-seo-article {
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    padding: 36px;
    margin-top: 40px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.th-linen_cozy-seo-header {
    border-bottom: 1px solid var(--th-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.th-linen_cozy-seo-header h2 {
    font-family: var(--th-font-head);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--th-text-main);
}
.th-linen_cozy-seo-lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--th-text-subtle);
    margin: 0;
}
.th-linen_cozy-seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.th-linen_cozy-seo-col h3 {
    font-family: var(--th-font-head);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 20px 0 10px;
    color: var(--th-primary);
}
.th-linen_cozy-seo-col p,
.th-linen_cozy-seo-col li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--th-text-subtle);
}
.th-linen_cozy-seo-col ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.th-linen_cozy-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}
.th-linen_cozy-faq-item {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    padding: 14px 18px;
}
.th-linen_cozy-faq-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--th-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.th-linen_cozy-faq-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--th-text-subtle);
}

/* Footer */
.th-linen_cozy-footer {
    background: var(--th-bg-surface);
    border-top: 1px solid var(--th-border);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.th-linen_cozy-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.th-linen_cozy-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.th-linen_cozy-footer-brand {
    font-family: var(--th-font-head);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--th-text-main);
    margin-bottom: 14px;
}
.th-linen_cozy-footer-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--th-text-subtle);
    margin-bottom: 16px;
}
.th-linen_cozy-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}
.th-linen_cozy-footer-title {
    font-family: var(--th-font-head);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--th-text-main);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.th-linen_cozy-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.th-linen_cozy-footer-links a {
    color: var(--th-text-subtle);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.th-linen_cozy-footer-links a:hover {
    color: var(--th-primary);
}
.th-linen_cozy-copyright-bar {
    border-top: 1px solid var(--th-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--th-text-subtle);
    flex-wrap: wrap;
    gap: 12px;
}
.th-linen_cozy-powered-badge {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Cookie Consent */
.th-linen_cozy-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    z-index: 999999;
    color: #ffffff;
}
.th-linen_cozy-cookie-banner .cookie-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.th-linen_cozy-cookie-banner .cookie-ico {
    font-size: 1.8rem;
    color: var(--th-primary);
    margin-top: 2px;
}
.th-linen_cozy-cookie-banner .cookie-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.th-linen_cozy-cookie-banner .cookie-text p {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 10px;
}
.th-linen_cozy-cookie-banner .cookie-text a {
    color: var(--th-primary);
    text-decoration: underline;
}
.th-linen_cozy-cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
}
.th-linen_cozy-cookie-banner .btn-cookie-accept {
    background: var(--th-primary);
    color: #ffffff;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}
.th-linen_cozy-cookie-banner .btn-cookie-dismiss {
    background: #334155;
    color: #f8fafc;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.84rem;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .th-linen_cozy-hero-section {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .th-linen_cozy-seo-grid {
        grid-template-columns: 1fr;
    }
    .th-linen_cozy-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .th-linen_cozy-header-inner {
        flex-wrap: wrap;
    }
    .th-linen_cozy-search-wrap {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .th-linen_cozy-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .th-linen_cozy-hero-title {
        font-size: 1.75rem;
    }
    .th-linen_cozy-footer-grid {
        grid-template-columns: 1fr;
    }
}
