/*
Theme Name: Journalist Pro
Theme URI: http://kvmehta:8888/
Author: Antigravity AI
Description: A premium Institutional Light theme for the Journalist Foundation. Features Navy/Gold accents, clean structured layouts, and high-authority typography.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --bg-color: #ffffff;
    --bg-alternate: #f8f9fa;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --accent-primary: #0d3b66; /* Logo Navy */
    --accent-secondary: #0a2d4d;
    --accent-highlight: #c5a059; /* Logo Gold */
    --border-color: #e2e8f0;
    --status-red: #dc2626;
    --status-green: #16a34a;
    --status-amber: #d97706;
    --font-heading: 'Hind Vadodara', sans-serif;
    --font-body: 'Hind Vadodara', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s var(--easing);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1.2;
}

/* Common Layout Components */
.section-light {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-alt {
    padding: 80px 0;
    background: var(--bg-alternate);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s var(--easing);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-highlight);
}

/* Breaking News Ticker (Classic Red/White) */
.ticker-wrap {
    width: 100%;
    height: 40px;
    background: var(--accent-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 5;
    position: relative;
}

.ticker-label {
    background: #fff;
    color: var(--accent-primary);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: slideLeft 30s linear infinite;
}

.ticker-item {
    padding: 0 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Navigation & Header */
header.tiered-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-bar {
    background: #f1f5f9;
    padding: 8px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.main-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar {
    background: var(--accent-primary);
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 0;
}

.nav-links a {
    padding: 15px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-links a:hover, .nav-links a.active {
    background: var(--accent-highlight);
    color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-alternate);
    padding: 12px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--accent-highlight);
    color: #fff;
}

/* Sidebar Layout */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    padding: 60px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    padding: 15px 20px;
    background: var(--bg-alternate);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Form Styles */
.form-input {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 4px;
    color: var(--text-color);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

.file-input-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    background: var(--bg-alternate);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-input-wrapper:hover {
    border-color: var(--accent-highlight);
    background: #fff;
}

/* Footer */
footer {
    background: #0f172a;
    color: #fff;
    padding: 80px 0 40px;
}

footer h4 {
    color: var(--accent-highlight);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    animation: revealUp 0.8s var(--easing) forwards;
}

/* Visitor Counter Styles */
.footer-visitor-counter {
    transition: all 0.3s var(--easing);
}

.footer-visitor-counter:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: var(--accent-highlight) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-visitor-counter span strong {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* Footer Sub-menu Styles */
footer ul li.menu-item-has-children {
    position: relative;
    cursor: default;
}

footer ul li.menu-item-has-children > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-highlight);
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s var(--easing);
}

footer ul li.menu-item-has-children:hover > span {
    color: #fff;
}

footer ul li.menu-item-has-children .sub-menu {
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 5px;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--easing), opacity 0.5s var(--easing);
    opacity: 0;
}

footer ul li.menu-item-has-children:hover .sub-menu {
    max-height: 500px;
    opacity: 1;
    margin-top: 5px;
}

footer ul li.menu-item-has-children .sub-menu li {
    margin-bottom: 8px;
}

footer ul li.menu-item-has-children .sub-menu li a {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li.menu-item-has-children .sub-menu li a:before {
    content: "•";
    color: var(--accent-highlight);
    font-size: 1.2rem;
    line-height: 0;
}

footer ul li.menu-item-has-children .sub-menu li a:hover {
    color: var(--accent-highlight);
    transform: translateX(5px);
}

footer ul li.menu-item-has-children .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--easing);
}

footer ul li.menu-item-has-children:hover .dashicons {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    footer .container > div[style*="flex-direction: row"],
    footer .container > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .footer-visitor-counter {
        order: -1;
        margin-bottom: 10px;
    }
}

/* --- Inauguration Splash Screen --- */
#inauguration-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a2a44 0%, #0a1128 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.8s ease;
    text-align: center;
    padding: 20px;
}

#inauguration-splash.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1), transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-content {
    max-width: 600px;
    animation: fadeInScale 1.2s ease-out;
    transition: opacity 1.5s ease;
}

.ceremony-opening .splash-content {
    opacity: 0;
    transform: scale(0.9);
}

/* Gold Dust Particles */
.gold-dust {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #fff 0%, #ffd700 100%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 10px #ffd700;
    z-index: 10001;
}

.ceremony-opening .gold-dust {
    animation: goldDustExplosion 3s ease-out forwards;
}

@keyframes goldDustExplosion {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

.splash-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    border-radius: 10px;
}

.splash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.splash-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-inaugurate {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #000;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-inaugurate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.btn-inaugurate:active {
    transform: scale(0.95);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.btn-inaugurate {
    animation: pulseGold 2s infinite;
}
