/* JOSER Main Stylesheet */

/* Base Styles */
body {
    font-family: inherit;
    background: var(--space-dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, var(--deep-blue) 0%, var(--space-dark) 100%);
}

/* Futuristic Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

header h1 {
    color: white !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

h1:not(header h1) {
    background: linear-gradient(90deg, #fff, var(--science-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism Card Styles */
.card {
    background: rgba(21, 26, 58, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-stroke);
    box-shadow: 0 8px 32px rgba(16, 20, 50, 0.4);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(16, 20, 50, 0.6);
}

.card-header {
    background: rgba(106, 62, 184, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}



/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--science-blue), var(--purple-accent));
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(64, 81, 181, 0.6);
    transform: translateY(-2px);
}

/* Form Elements */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--science-teal);
    box-shadow: 0 0 0 0.25rem rgba(58, 184, 180, 0.25);
    color: white;
}

/* Header Styles */
header {
    margin-bottom: 20px;
}

header h1 {
    margin-bottom: 0;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--science-teal), transparent);
}

/* Footer Styles */
footer {
    background: var(--deep-blue);
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--science-teal);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .card {
        margin-bottom: 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .card {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    header .col-md-8,
    header .col-md-4 {
        text-align: center;
    }
    
    header .btn {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }
    
    .card-header {
        padding: 10px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}
/* Home Page Specific Styles */
#main-content .card,
.col-md-4 .card {
    background: rgba(21, 26, 58, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-stroke) !important;
}

#main-content .card-header,
.col-md-4 .card-header {
    background: rgba(28, 150, 48, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: inherit !important;
}

/* Override any purple gradients on home page cards */
#main-content .card .btn-primary,
.col-md-4 .card .btn-primary {
    background: linear-gradient(45deg, var(--science-blue), var(--science-teal)) !important;
}

#main-content .card .btn-primary:hover,
.col-md-4 .card .btn-primary:hover {
    background: linear-gradient(45deg, var(--science-blue), var(--science-teal)) !important;
    box-shadow: 0 4px 15px rgba(58, 184, 180, 0.6) !important;
}

/* Ensure equal height for home page layout */
.col-md-8 .card.h-100,
.col-md-4 .card.h-100 {
    height: 100% !important;
    min-height: 400px; /* Adjust as needed */
}

/* Specific styling for submit manuscript card */
.col-md-4 .card:first-child {
    background: rgba(21, 26, 58, 0.6) !important;
}

.col-md-4 .card:first-child .card-header {
    background: rgba(28, 150, 48, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Flexbox for button alignment in submit manuscript */
.col-md-4 .card .card-body.d-flex {
    display: flex !important;
    flex-direction: column !important;
}

.col-md-4 .card .card-body .mt-auto {
    margin-top: auto !important;
}

/* Remove any purple accents from home page */
#main-content *,
.col-md-4 * {
    background-image: none !important;
}