/*
Theme Name: IPTV DE
Theme URI: https://example.com/iptv-de
Author: Mohamed Amine
Description: Minimal WordPress theme with a custom homepage layout powered by index.php and functions.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: iptv-de
*/

:root {
    --bg: #f7efe4;
    --paper: rgba(255, 250, 243, 0.84);
    --card: #fffdf9;
    --text: #201815;
    --muted: #66564d;
    --accent: #d05d32;
    --accent-strong: #a43d1a;
    --line: rgba(32, 24, 21, 0.12);
    --shadow: 0 24px 60px rgba(32, 24, 21, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(208, 93, 50, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(63, 125, 88, 0.18), transparent 30%),
        linear-gradient(180deg, #f3e6d5 0%, #f8f2ea 45%, #efe6d9 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.site-header,
.site-footer,
.post-card,
.side-card,
.pagination-wrap {
    backdrop-filter: blur(18px);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.custom-logo-link img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-title {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1;
    font-weight: 700;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(32, 24, 21, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.section-title {
    margin-bottom: 18px;
}

.section-title h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.section-title p {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 1rem;
}

.stack {
    display: grid;
    gap: 18px;
}

.post-card,
.side-card,
.pagination-wrap {
    border-radius: var(--radius-lg);
}

.post-card {
    padding: 26px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

.post-title {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1;
}

.post-title a {
    color: var(--text);
}

.post-media {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 18px;
}

.post-media img {
    width: 100%;
}

.post-excerpt,
.side-card,
.widget {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.post-excerpt p:last-child,
.widget p:last-child {
    margin-bottom: 0;
}

.post-link,
.wp-block-search__button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.post-link {
    margin-top: 18px;
}

.side-column {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.side-card {
    padding: 22px;
}

.side-card h2,
.widget-title {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1.2rem;
}

.side-card ul,
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.side-card li,
.widget li {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-card li:last-child,
.widget li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.search-form,
.wp-block-search {
    display: grid;
    gap: 12px;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(32, 24, 21, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

.pagination-wrap {
    padding: 18px 22px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(32, 24, 21, 0.08);
}

.pagination .current {
    background: var(--accent-strong);
    color: #fff;
}

.site-footer {
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: var(--radius-xl);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

.empty-state {
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .site-header,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .side-column {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 18px, 100%);
        padding-top: 18px;
    }

    .site-header,
    .post-card,
    .side-card,
    .pagination-wrap,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-title {
        font-size: 1.55rem;
    }

    .section-title h1,
    .post-title {
        line-height: 1.05;
    }
}