/*
Theme Name: Global Scholar
Theme URI: https://theglobalacademy.ac
Author: Antigravity
Author URI: https://theglobalacademy.ac
Description: A modern custom WordPress theme for The Global Academy with researcher profiles.
Version: 1.0.0
Text Domain: global-scholar
*/

:root {
    /* Colors */
    --color-primary: #0a192f;
    /* Deep Navy */
    --color-secondary: #ffffff;
    /* Clean White */
    --color-accent: #64ffda;
    /* Vibrant Cyan/Mint */
    --color-gold: #ffd700;
    /* Gold */
    --color-text-main: #1d1d1d;
    --color-text-light: #555555;
    --color-bg-light: #f8f9fa;
    --color-border: #e2e8f0;
    --color-header-bg: rgba(255, 255, 255, 0.9);

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    padding-top: var(--header-height);
    /* For fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
    /* Not always good on white */
}

/* Specific link hover for dark backgrounds */
.site-footer a:hover,
.btn-primary:hover {
    color: var(--color-secondary);
    opacity: 0.9;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn,
.btn-primary,
.btn-accent {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
.site-header {
    background-color: var(--color-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1rem;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFF 0%, #f0f4f8 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.5rem auto 0;
}

/* Researcher Grid */
.researcher-grid,
.researcher-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img::after {
    content: 'No Image';
    color: #999;
}

.card-content {
    padding: var(--spacing-sm);
}

.card-content h2,
.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.researcher-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 800px;
    padding: var(--spacing-lg) 0;
}

.btn-logout {
    float: right;
    color: #d32f2f;
    font-weight: 600;
}

.profile-form {
    padding: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    /* Explicitly white text */
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-socials a {
    color: #ffffff;
    margin-left: var(--spacing-sm);
    font-weight: 600;
}

.footer-socials a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .main-navigation ul {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
}