/* ==========================================
   Modern GeneratePress Site Styling
   ========================================== */

:root {
    --modern-primary: #2563eb;
    --modern-primary-dark: #1d4ed8;
    --modern-text: #162033;
    --modern-muted: #667085;
    --modern-bg: #f6f8fc;
    --modern-card: #ffffff;
    --modern-border: #e6eaf2;
    --modern-radius: 16px;
    --modern-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* Page background and typography */
body {
    background: var(--modern-bg);
    color: var(--modern-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
}

p {
    color: #384152;
}

a {
    color: var(--modern-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--modern-primary-dark);
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--modern-border);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.inside-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-branding .main-title a,
.site-logo a {
    color: var(--modern-text);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Navigation */
.main-navigation {
    background: #ffffff;
    border-bottom: 1px solid var(--modern-border);
}

.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-item > a {
    color: var(--modern-text);
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--modern-primary);
    background: #f3f7ff;
}

/* Main content cards */
.site-main .inside-article,
.widget,
.comments-area,
.paging-navigation {
    background: var(--modern-card);
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
}

.site-main .inside-article {
    padding: clamp(24px, 4vw, 42px);
}

/* Headings */
.entry-title,
h1, h2, h3, h4 {
    color: var(--modern-text);
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.entry-title {
    font-weight: 750;
    margin-bottom: 16px;
}

.entry-content h2 {
    margin-top: 42px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--modern-border);
}

.entry-meta {
    color: var(--modern-muted);
    font-size: 14px;
}

/* Sidebar widgets */
.widget {
    padding: 24px;
    margin-bottom: 22px;
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 16px;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
.gb-button {
    background: var(--modern-primary);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.gb-button:hover {
    background: var(--modern-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* Form fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    background: #ffffff;
    border: 1px solid #d8deea;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--modern-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Tables */
.entry-content table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--modern-border);
    border-radius: 12px;
    overflow: hidden;
}

.entry-content th {
    background: #f3f7ff;
    color: var(--modern-text);
    font-weight: 650;
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--modern-border);
}

.entry-content tr:last-child td {
    border-bottom: 0;
}

/* Footer */
.site-footer {
    margin-top: 38px;
}

.site-info {
    background: #111827;
    color: #cbd5e1;
}

.site-info a {
    color: #ffffff;
}

/* Mobile refinements */
@media (max-width: 768px) {
    .site-main .inside-article {
        border-radius: 12px;
        padding: 22px 18px;
    }

    .widget {
        border-radius: 12px;
        padding: 20px 18px;
    }

    .entry-content h2 {
        margin-top: 34px;
    }
}