/* Responsive CSS for WUJOPAS Journal Platform */

:root {
    --primary-color: #0d4f3c;
    --secondary-color: #1a7a5c;
    --accent-color: #2d9a73;
    --light-green: #4ade80;
    --dark-green: #064e3b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.navbar-brand .brand-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.navbar-brand .brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 154, 115, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-mobile {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.8rem;
    }
    
    .navbar-brand .brand-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.75rem;
    }
    
    .navbar-brand .brand-subtitle {
        font-size: 0.6rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 25px;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.7rem;
    }
    
    .navbar-brand .brand-subtitle {
        font-size: 0.55rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .navbar-brand {
        font-size: 0.75rem;
    }
    
    .navbar-brand img {
        height: 20px;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.65rem;
    }
    
    .navbar-brand .brand-subtitle {
        font-size: 0.5rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .footer,
    #backToTop {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}
