/*
Theme Name: Delta Chat Theme
Theme URI: https://chat.thedeltaexecutor.com
Author: Site Admin
Description: A custom WordPress theme for Random Video Calling Apps.
Version: 1.4
*/

:root {
    --primary: #000080;
    --secondary: #800080;
    --bg: #f5f7fb;
    --white: #ffffff;
    --text: #2c3e50;
    --muted: #6b7a8c;
    --border: #e8ebf3;
    --yellow: #ffd84d;
    --shadow: 0 8px 30px rgba(16, 24, 40, .08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    padding: 16px;
    font-family: 'Outfit', sans-serif;
}

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

.site-header {
    max-width: 1060px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 14px 22px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 10px;
    z-index: 50;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .2px;
}

.site-nav {
    margin-top: 10px;
}

.site-nav ul,
.site-footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header a,
.site-footer a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color .3s ease;
}

.site-header a:hover,
.site-footer a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8f9ff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
    max-width: 1060px;
    margin: 28px auto 0;
    background: var(--white);
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, .05);
}

.site-footer p {
    font-size: .92rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.hero {
    background: linear-gradient(135deg, #000080, #800080);
    padding: 56px 24px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    margin-bottom: 15px;
    line-height: 1.15;
    color: #fff7cc;
    text-shadow: 0 0 10px rgba(255, 216, 77, .75), 0 0 22px rgba(255, 216, 77, .55), 2px 2px 0 rgba(90, 45, 0, .28);
}

.hero p {
    font-size: 1.06rem;
    opacity: .96;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-btn,
.btn-main,
.app-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
}

.hero-btn {
    margin-top: 24px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
    transition: transform .2s ease;
}

.hero-btn:hover {
    transform: scale(1.04);
}

.content {
    padding: 30px;
}

h2 {
    color: var(--primary);
    margin-top: 36px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary);
    padding-left: 12px;
    font-size: 1.5rem;
}

p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.highlight-box {
    background: linear-gradient(135deg, #000080, #800080);
    color: var(--white);
    padding: 24px;
    border-radius: 20px;
    margin: 28px 0;
    text-align: center;
}

.highlight-box h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.btn-main {
    margin-top: 18px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
}

.ad-wrap {
    margin: 22px auto;
    display: flex;
    justify-content: center;
}

.ad-box {
    width: 100%;
    max-width: 100%;
    min-height: 110px;
    border: 2px dashed #c8cce5;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbff, #f3f5fc);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}

.ad-box p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.7;
}

.ad-box strong {
    color: var(--primary);
}

.ad-responsive {
    max-width: 970px;
    min-height: 120px;
}

.ad-336 {
    width: 336px;
    min-width: 336px;
    max-width: 336px;
    min-height: 280px;
    height: 280px;
    padding: 20px;
}

.quiz-container {
    margin: 34px 0;
    background: var(--white);
    border: 2px solid #800080;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(128, 0, 128, .08);
}

.quiz-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #800080;
    margin-bottom: 20px;
}

.quiz-step {
    display: none;
}

.quiz-active {
    display: block;
}

.btn-gradient {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #000080, #800080);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    padding: 15px;
    margin-bottom: 14px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
}

.spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.apps-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(336px, 336px));
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.app-card {
    width: 336px;
    min-height: 280px;
    background: var(--white);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.app-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #efe7ff);
    border: 1px solid #e4ddff;
}

.app-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.app-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.app-card p {
    font-size: .95rem;
    margin-bottom: 18px;
    color: var(--muted);
}

.app-btn {
    background: linear-gradient(90deg, #000080, #800080);
    color: var(--white);
    padding: 12px 20px;
    font-size: .92rem;
    margin-top: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    border: 1px solid #ddd;
    padding: 14px;
    text-align: left;
}

th {
    background: #f3f3f3;
}

.faq-box,
.info-box {
    background: #fafafa;
    border-radius: 15px;
    padding: 18px;
    margin-top: 15px;
    border: 1px solid #eee;
}

.faq-box strong,
.info-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.tips-list {
    padding-left: 20px;
    margin-top: 15px;
}

.tips-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.section-note {
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.contact-card {
    background: linear-gradient(180deg, #fcfcff, #f7f8fd);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.contact-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    word-break: break-word;
}

@media (min-width: 601px) {
    .site-nav {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 22px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: .95rem;
    }

    .ad-336,
    .app-card {
        width: 100%;
        min-width: 0;
        max-width: 336px;
    }

    .apps-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .site-header {
        padding: 14px 16px;
        top: 6px;
    }

    .header-bar {
        min-height: 46px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .site-nav.menu-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        border-radius: 12px;
        background: #f8f9ff;
    }

    .site-footer ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 46px 18px;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero p,
    p,
    .app-card p {
        font-size: .98rem;
    }

    .content {
        padding: 18px;
    }

    .quiz-container,
    .highlight-box,
    .contact-card,
    .faq-box,
    .info-box,
    .app-card {
        padding: 18px;
    }

    .ad-336 {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
