/* assets/css/style.css */
:root {
    /* Premium Emerald & Sage Palette */
    --color-primary: #0f3d32; /* Rich Emerald Dark */
    --color-primary-light: #1b5f4c;
    --color-primary-dark: #07211a;
    --color-accent: #c6a87c; /* Soft Metallic Gold */
    --color-accent-hover: #e8cd9c;
    --color-accent-dark: #997d53;
    
    --color-text: #2a3330;
    --color-text-light: #606d68;
    --color-text-muted: #8b9d96;
    --color-bg: #fdfdfd; 
    --color-bg-alt: #f4f7f5; /* Subtle Sage Tint */
    --color-border: #e0e8e4;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s ease-in-out;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 12px rgba(15, 61, 50, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 61, 50, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 61, 50, 0.12);
    --shadow-glow: 0 0 20px rgba(198, 168, 124, 0.3);
    
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Add custom animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Pill shape for premium feel */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

/* Header with Glassmorphism */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 232, 228, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo { display: flex; align-items: center; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.main-nav a:not(.btn):hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.mobile-toggle span {
    width: 28px; height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Hero Section Modernized */
.hero {
    position: relative;
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 8rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    mix-blend-mode: luminosity;
    z-index: 1;
    transform: scale(1.05);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(7, 33, 26, 0.95) 0%, rgba(7, 33, 26, 0.4) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: 750px;
    margin-left: 0;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    color: #fff;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 600px;
}

/* Sections */
.section { padding: 6rem 0; }
.section-alt { background-color: var(--color-bg-alt); }

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}

/* Premium Cards */
.card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(224, 232, 228, 0.6);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; }

/* Article List Modernized */
.article-item {
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.article-item:last-child { border-bottom: none; }
.article-item:hover { background-color: rgba(244, 247, 245, 0.5); padding-left: 1rem; padding-right: 1rem; border-radius: var(--border-radius-sm); }

.article-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.article-title a { color: var(--color-primary-dark); }
.article-title a:hover { color: var(--color-accent-dark); }

.article-authors {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group { margin-bottom: 1.8rem; }
.form-label { display: block; margin-bottom: 0.6rem; font-weight: 500; color: var(--color-primary-dark); }
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--color-bg);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(198, 168, 124, 0.15);
    background-color: #fff;
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* Modern Tables */
.table-responsive { overflow-x: auto; border-radius: var(--border-radius); border: 1px solid var(--color-border); }
.table { width: 100%; border-collapse: collapse; margin-bottom: 0; background: #fff; }
.table th, .table td { padding: 1.2rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.table th { background-color: var(--color-bg-alt); font-weight: 600; color: var(--color-primary-dark); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background-color: rgba(244, 247, 245, 0.3); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.badge-pending { background-color: #fff3cd; color: #856404; }
.badge-review { background-color: #cce5ff; color: #004085; }
.badge-accepted { background-color: #d4edda; color: #155724; }
.badge-rejected { background-color: #f8d7da; color: #721c24; }
.badge-published { background-color: var(--color-primary-light); color: #fff; }

/* Alerts */
.alert { padding: 1.2rem; border-radius: var(--border-radius-sm); margin-bottom: 1.5rem; display: flex; align-items: center; }

/* Footer */
.main-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h3::after, .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--color-accent);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.85rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); transition: var(--transition-fast); }
.footer-col a:hover { color: var(--color-accent); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Animations Trigger Classes */
.animate-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero { padding: 6rem 0 4rem; text-align: center; justify-content: center; min-height: auto; }
    .hero .container { margin: 0 auto; }
    .hero h1 { font-size: 2.5rem; }
    .hero::after { background: linear-gradient(to bottom, rgba(7, 33, 26, 0.8) 0%, rgba(7, 33, 26, 0.95) 100%); }
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 85px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        box-shadow: var(--shadow-md); padding: 2rem 0; border-top: 1px solid var(--color-border);
    }
    .main-nav.active { display: block; animation: fadeInDown 0.3s ease; }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .grid-2, .grid-3 { gap: 1.5rem; grid-template-columns: 1fr; }
}
