/* =============================================== */
/* Fari Journal of Social Sciences and Law (FJSSL) */
/* Comprehensive Stylesheet for OJS Implementation */
/* =============================================== */

/* ===== BASE & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Color Scheme */
    --primary-orange: #FF6F00;
    --primary-orange-dark: #E65100;
    --primary-orange-light: #FF9E40;
    --primary-orange-lightest: #FFF3E0;
    
    /* Neutral Colors */
    --pure-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #6C757D;
    --text-dark: #343A40;
    
    /* Accent Colors */
    --accent-blue: #1565C0;
    --accent-green: #2E7D32;
    --accent-red: #C62828;
    
    /* Typography */
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Merriweather', Georgia, 'Times New Roman', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Borders & Shadows */
    --border-radius: 4px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid var(--primary-orange);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    background-color: var(--primary-orange-lightest);
    font-style: italic;
}

/* ===== LAYOUT & STRUCTURE ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--pure-white);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background: var(--primary-orange-dark);
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--pure-white);
    text-decoration: none;
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    background: var(--pure-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

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

.logo-icon {
    background: var(--primary-orange);
    color: var(--pure-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary-orange);
}

#navigation {
    display: flex;
    align-items: center;
}

#navigation ul {
    display: flex;
    list-style: none;
}

#navigation li {
    margin-left: var(--spacing-md);
}

#navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    text-decoration: none;
}

#navigation a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-medium);
}

#navigation a:hover:after,
#navigation a.active:after {
    width: 100%;
}

#navigation a.active {
    color: var(--primary-orange);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== HERO SECTION ===== */
#hero {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.9) 0%, rgba(230, 81, 0, 0.9) 100%), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--pure-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    color: var(--pure-white);
    font-size: 3.2rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hero-stats {
    display: flex;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
}

.stat-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    font-size: 1.5rem;
}

.stat-text strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ===== ABOUT SECTION ===== */
#about {
    background: var(--pure-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
}

.about-text h2 {
    margin-bottom: var(--spacing-sm);
}

.highlight-box {
    background: rgba(255, 111, 0, 0.05);
    border-left: 4px solid var(--primary-orange);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ===== FEATURES SECTION ===== */
#features {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    background: var(--primary-orange);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--pure-white);
}

.feature-content {
    padding: var(--spacing-md);
}

.feature-content h3 {
    margin-bottom: var(--spacing-sm);
}

/* ===== ARTICLES SECTION ===== */
#articles {
    background: var(--pure-white);
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.article-filters {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: var(--light-gray);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-orange);
    color: var(--pure-white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.article-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--box-shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: var(--spacing-md);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.article-category {
    background: var(--primary-orange-light);
    color: var(--text-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.article-card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

/* ===== FOOTER ===== */
#footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--pure-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-medium);
}

.footer-col a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
    text-decoration: none;
}

.contact-info li {
    display: flex;
    margin-bottom: var(--spacing-sm);
}

.contact-icon {
    color: var(--primary-orange);
    margin-right: var(--spacing-sm);
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    padding-left: 0;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
}

/* ===== OJS SPECIFIC COMPONENTS ===== */
/* Journal Masthead */
.journal-masthead {
    background: var(--primary-orange);
    color: var(--pure-white);
    padding: var(--spacing-sm) 0;
}

.journal-masthead .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.journal-issn {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Issue TOC */
.issue-toc {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.issue-header {
    border-bottom: 2px solid var(--primary-orange-light);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.toc-section {
    margin-bottom: var(--spacing-md);
}

.toc-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-orange-dark);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.toc-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--medium-gray);
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.toc-authors {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Article Page */
.article-details {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.article-title {
    color: var(--primary-orange-dark);
    margin-bottom: var(--spacing-sm);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.article-abstract {
    background: var(--primary-orange-lightest);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.article-galleys {
    margin-top: var(--spacing-md);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    #navigation ul {
        position: absolute;
        top: 80px;
        left: 0;
        background: var(--pure-white);
        width: 100%;
        flex-direction: column;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-sm) 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all var(--transition-medium);
    }
    
    #navigation ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    #navigation li {
        margin: 0;
    }
    
    #navigation li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-text strong {
        font-size: 1.5rem;
    }
    
    .journal-masthead .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}