/*
Theme Name: Zeta Rank Theme
Theme URI: https://zetarank.com
Author: Zeta Rank Team
Description: A modern, high-performance WordPress theme with built-in JSON-LD Schema, glass-morphism UI, and dark-gradient aesthetics.
Version: 2.0.0
License: GPL v2 or later
Text Domain: zeta-rank
*/

/* ----- ROOT VARIABLES (Modern Palette) ----- */
:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --cyan: #06b6d4;
    --purple: #8b5cf6;
    --gradient-main: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --gradient-hover: linear-gradient(135deg, #22d3ee, #a78bfa);
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --radius: 20px;
}

/* ----- RESET & BASE ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
a { text-decoration: none; color: var(--cyan); transition: 0.3s; }
a:hover { color: var(--purple); }
img { max-width: 100%; height: auto; }

/* ----- GLASSMORPHISM UTILITY ----- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.15);
}

/* ----- GRADIENT TEXT ----- */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- ANIMATIONS ----- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }

/* ----- HEADER / NAV (Glass) ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    transition: 0.3s;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.logo span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    letter-spacing: 3px;
    -webkit-text-fill-color: var(--text-muted);
}
.logo img { max-height: 50px; width: auto; }

/* Primary Nav */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.cta-btn-nav {
    background: var(--gradient-main);
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
}
.cta-btn-nav:hover { background: var(--gradient-hover); transform: scale(1.05); color: #fff !important; }
.cta-btn-nav::after { display: none !important; }

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

/* ----- HERO (Front Page) ----- */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, #1e293b, #0f172a 80%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 { font-size: 62px; font-weight: 800; line-height: 1.05; margin-bottom: 20px; }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 500px; margin-bottom: 30px; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.hero-stats div h3 { font-size: 38px; font-weight: 800; }
.hero-stats div p { font-size: 14px; color: var(--text-muted); margin: 0; }
.hero-chart {
    background: var(--secondary);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}
.chart-bars { display: flex; align-items: flex-end; gap: 20px; height: 180px; justify-content: center; }
.chart-bars .bar { width: 45px; border-radius: 10px 10px 0 0; background: var(--gradient-main); transition: 0.5s; }
.chart-bars .bar:nth-child(1) { height: 80px; background: #4db8ff; }
.chart-bars .bar:nth-child(2) { height: 140px; }
.chart-bars .bar:nth-child(3) { height: 100px; background: #a78bfa; }
.chart-bars .bar:nth-child(4) { height: 170px; }

/* ----- GENERAL PAGE HEADER ----- */
.page-header {
    padding: 80px 0 50px;
    background: radial-gradient(circle at 30% 10%, #1e293b, #0f172a 90%);
    border-bottom: 1px solid var(--glass-border);
}
.page-header h1 { font-size: 48px; font-weight: 800; }

/* ----- CONTENT AREA (Blog/Pages) ----- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 0;
}
.content-main { background: var(--secondary); border-radius: var(--radius); padding: 40px; border: 1px solid var(--glass-border); }
.content-main h2, .content-main h3 { margin-top: 20px; }
.content-main p { color: var(--text-muted); margin-bottom: 15px; }
.sidebar-widget {
    background: var(--secondary);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    margin-bottom: 25px;
}
.sidebar-widget h3 { font-size: 20px; margin-bottom: 15px; border-bottom: 2px solid var(--cyan); padding-bottom: 10px; display: inline-block; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a { color: var(--text-muted); }
.sidebar-widget ul li a:hover { color: #fff; }

/* ----- FOOTER (Modern Dark) ----- */
.site-footer {
    background: #0a0f1a;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-grid a:hover { color: var(--cyan); transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 25px; color: var(--text-muted); font-size: 14px; }

/* ----- BLOG CARDS (Index) ----- */
.blog-card {
    background: var(--secondary);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    transition: 0.3s;
}
.blog-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.blog-card h2 a { color: #fff; font-size: 28px; }
.blog-card .meta { color: var(--text-muted); font-size: 14px; margin: 10px 0; }

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 30px; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        border-top: 1px solid var(--glass-border);
        margin-top: 15px;
    }
    .nav-links.is-active { display: flex; }
    .hero h1 { font-size: 36px; }
    .page-header h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .content-main { padding: 20px; }
}

/* ----- COMMENTS ----- */
.comments-area { color: var(--text-light); }
.comments-title { font-size: 22px; margin-bottom: 20px; }
.comment-list { padding: 0; margin: 0 0 30px; }
.comment-list .comment {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.comment-list .comment-author img { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-list .comment-author .fn { font-weight: 600; color: #fff; font-style: normal; }
.comment-list .comment-metadata { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 10px; }
.comment-list .comment-metadata a { color: var(--text-muted); }
.comment-list .comment-content p { color: var(--text-muted); margin-bottom: 10px; }
.comment-list .children { list-style: none; margin-left: 30px; }
.comment-respond { background: var(--secondary); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 30px; }
.comment-respond .comment-reply-title { font-size: 20px; margin-bottom: 16px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
}
.comment-form label { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; }
.comment-form .form-submit input { border: none; cursor: pointer; }

/* ----- SEARCH FORM ----- */
.search-field:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.search-submit { border: none; cursor: pointer; }

/* ----- SCREEN-READER ONLY TEXT (accessibility) ----- */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
