/* ============================
   LAYOUT.CSS - Main Layout Styles
   International Science Journal
   ============================ */

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #ffd700;
}

/* Global Font - System Fonts */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Body Layout */
body {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================
   TOP HEADER
   ============================ */
.top-header {
    background: var(--primary-gradient);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.top-header .container {
    padding-left: 15px;
}

.top-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* Logo Styles */
.header-logo-link {
    transition: all 0.3s ease;
}

.header-logo-link:hover {
    transform: scale(1.02);
}

.logo-wrapper {
    position: relative;
    padding: 0;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.header-logo-link:hover .header-logo {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.logo-text {
    line-height: 1.3;
}

.logo-text .school-name {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-text .university-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ============================
   USER BUTTONS
   ============================ */
.user-section .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-section .btn:hover {
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.btn-accent {
    background: var(--accent-color);
    color: #1e3c72;
    border: none;
    font-weight: 600;
}

.btn-accent:hover {
    background: #ffdd33;
    color: #1e3c72;
}

/* ============================
   NAVBAR
   ============================ */
.main-navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 0;
}

.main-navbar .nav-link {
    padding: 18px 20px;
    font-weight: 500;
    color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.main-navbar .nav-link:hover {
    color: var(--secondary-color);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 70%;
}

.nav-btn-submit {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px !important;
    margin: 10px 0;
    font-weight: 600;
}

.nav-btn-submit:hover {
    box-shadow: 0 5px 20px rgba(30,60,114,0.4);
    transform: translateY(-2px);
}

.nav-btn-submit::after {
    display: none !important;
}

/* ============================
   MAIN CONTENT
   ============================ */
main {
    flex: 1;
    padding: 30px 0;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-contact li i {
    margin-right: 12px;
    margin-top: 4px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #1e3c72;
    transform: translateY(-3px);
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991px) {
    .top-header .container {
        flex-direction: column;
        text-align: center;
    }
    .user-section {
        margin-top: 15px;
    }
    .main-navbar .nav-link::after {
        display: none;
    }
}
