/**
 * MiniMax Theme Custom CSS
 * Converted from Tailwind CSS
 * For OJS 3.3.0
 */

/* CSS Variables */
:root {
    --primary: #1e3a5f;
    --secondary: #c9a227;
    --accent: #2d5a87;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: var(--font-serif);
}

.fs-1 { font-size: 0.25rem; }
.fs-2 { font-size: 0.5rem; }
.fs-3 { font-size: 0.75rem; }
.fs-4 { font-size: 1rem; }
.fs-5 { font-size: 1.25rem; }
.fs-6 { font-size: 1.5rem; }
.fs-2-5 { font-size: 2rem; }
.fs-3-5 { font-size: 2.5rem; }
.fs-4-5 { font-size: 3rem; }
.text-4xl { font-size: 2.25rem; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.stat-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Colors */
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }
.text-primary { color: var(--primary); }
.text-muted { color: #6b7280; }
.text-warning { color: var(--secondary); }
.text-gray-600 { color: #4b5563; }
.text-success { color: #10b981; }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark); }
.bg-success { background-color: #10b981; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

@media (min-width: 768px) {
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
}

@media (min-width: 992px) {
    .d-lg-flex { display: flex; }
    .d-lg-block { display: block; }
    .d-lg-none { display: none; }
}

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-stretch { align-items: stretch; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-5 { padding-top: 3rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-3 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }
.ps-4 { padding-left: 1.5rem; }
.pe-4 { padding-right: 1.5rem; }
.p-md-5 { padding: 3rem; }
@media (max-width: 767px) {
    .p-md-5 { padding: 1rem; }
}

/* Spacing - Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width & Height */
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.h-100 { height: 100%; }
.min-vh-100 { min-height: 100vh; }
 VW { width: 64px; }
.h-48 { height: 48px; }
.h-56 { height: 56px; }
.h-64 { height: 64px; }
.h-100px { height: 100px; }
.w-100px { width: 100px; }
.rw-64 { width: 64px; height: 64px; min-width: 64px; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.top-0 { top: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 9999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Text */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-decoration-none { text-decoration: none; }
.text-uppercase { text-transform: uppercase; }
.lh-lg { line-height: 2; }
.lh-base { line-height: 1.625; }

/* Content Card */
.content-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

@media (min-width: 768px) {
    .content-card {
        padding: 2rem;
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 0.75rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: var(--primary);
}

.navbar-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #d4af37 100%);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #d1d5db;
    color: var(--dark);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
}

.btn-light {
    background: white;
    color: var(--dark);
}

.btn-light:hover {
    background: #f9fafb;
}

.btn-warning {
    background: var(--secondary);
    color: var(--dark);
}

.btn-warning:hover {
    background: #d4af37;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-warning {
    background: var(--secondary);
    color: var(--dark);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* Grid System */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col-6 { width: 50%; padding: 0.75rem; }
.col-12 { width: 100%; padding: 0.75rem; }
.col-lg-3 { width: 25%; padding: 0.75rem; }
.col-lg-4 { width: 33.333333%; padding: 0.75rem; }
.col-lg-6 { width: 50%; padding: 0.75rem; }
.col-lg-8 { width: 66.666667%; padding: 0.75rem; }

@media (max-width: 991px) {
    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8 { width: 100%; }
}

@media (max-width: 767px) {
    .col-md-6 { width: 100%; }
}

/* Form Elements */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td,
.table th {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Lists */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.object-fit-cover {
    object-fit: cover;
}

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.transition { transition: all 0.3s ease; }

/* Section Styles */
.section-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-light {
    background: var(--light);
    padding: 3rem 0;
}

.section-white {
    background: white;
    padding: 3rem 0;
}

.section-dark {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Parallax Header */
.parallax-header {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

/* Display utilities */
.display-3 {
    font-size: 3rem;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2rem;
    }
}

/* Text utilities */
.text-warning {
    color: var(--secondary) !important;
}

.text-white-40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white-60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

/* Border utilities */
.border-secondary {
    border-color: var(--secondary) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Author Card */
.author-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--light);
    transition: background 0.3s ease;
}

.author-card:hover {
    background: #e5e7eb;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Issue Card */
.issue-card {
    position: relative;
    padding: 1rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 0.5rem 0 0 0.5rem;
}

.issue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Icon Styles */
.fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .content-card {
        padding: 1rem;
    }
}

/* Gradient overlay */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(45, 90, 135, 0.9) 100%);
}

/* Background patterns */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

/* Border utilities */
.border {
    border: 1px solid #e5e7eb;
}

.border-top {
    border-top: 1px solid #e5e7eb;
}

.border-bottom {
    border-bottom: 1px solid #e5e7eb;
}

.border-primary {
    border-color: var(--primary);
}

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }