/* The Iberian Review - Spanish Academic Platform */

:root {
    --spanish-burgundy: #8B2635;
    --spanish-cream: #F5F1E8;
    --spanish-gold: #D4AF37;
    --spanish-navy: #1a1a2e;
    --light-cream: #FAF8F4;
    --dark-text: #2C2C2C;
    
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-cream);
}

a {
    color: var(--spanish-burgundy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--spanish-gold);
}

/* Navigation Bar */
.navbar {
    background-color: white;
    color: var(--spanish-burgundy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--spanish-gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--spanish-burgundy);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.8rem;
    color: var(--spanish-gold);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--spanish-burgundy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--spanish-burgundy);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--spanish-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--spanish-gold);
    transition: width 0.3s ease;
}

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

.admin-link {
    background-color: var(--spanish-burgundy);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: white;
}

.admin-link:hover {
    background-color: var(--spanish-gold);
    color: var(--spanish-burgundy);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--spanish-cream) 0%, #f0ebe2 100%);
    color: var(--spanish-burgundy);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--spanish-gold);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--spanish-gold);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
}

/* Homepage Sections */
.homepage-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-card:hover {
    border-color: var(--spanish-burgundy);
    box-shadow: 0 6px 20px rgba(139, 38, 53, 0.15);
    transform: translateY(-4px);
}



.section-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--spanish-burgundy);
    margin-bottom: 0.5rem;
    padding-top: 1rem;
}

.section-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.click-hint {
    color: var(--spanish-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section Wrapper */
.section-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Article Form */
.article-form-box {
    background-color: white;
    border: 2px solid var(--spanish-gold);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.article-form-box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--spanish-burgundy);
    margin-bottom: 0.5rem;
}

.article-form-box > p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--dark-text);
    background-color: var(--spanish-cream);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--spanish-burgundy);
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

.btn-submit {
    background-color: var(--spanish-burgundy);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #6B1E24;
}

.form-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Articles Section */
.articles-section {
    margin-top: 2rem;
}

.articles-section h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--spanish-burgundy);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--spanish-gold);
    padding-bottom: 0.5rem;
}

.articles-list {
    display: grid;
    gap: 1.2rem;
}

.article-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--spanish-burgundy);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--spanish-burgundy);
    margin: 0;
    flex: 1;
}

.article-date {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
    margin-left: 1rem;
}

.article-author {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.article-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    display: inline-block;
    color: var(--spanish-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--spanish-gold);
    transition: all 0.3s ease;
}

.article-link:hover {
    padding-left: 5px;
    color: var(--spanish-gold);
}

.no-articles {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 1rem;
    background-color: var(--spanish-cream);
    border-radius: 6px;
}

/* Admin Sections */
.admin-section {
    margin-bottom: 3rem;
}

.admin-section h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--spanish-burgundy);
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--spanish-gold);
    padding-bottom: 0.5rem;
}

.section-subtitle {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.submission-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.submission-card.pending {
    border-color: var(--spanish-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.submission-card.approved {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.submission-card.rejected {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.05);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.submission-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--spanish-burgundy);
    margin: 0;
    flex: 1;
}

.submission-section {
    font-size: 0.8rem;
    background-color: var(--spanish-burgundy);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.submission-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.submission-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.submission-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-approve,
.btn-reject,
.btn-remove {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve {
    background-color: #4CAF50;
    color: white;
}

.btn-approve:hover {
    background-color: #45a049;
}

.btn-reject {
    background-color: #f44336;
    color: white;
}

.btn-reject:hover {
    background-color: #da190b;
}

.btn-remove {
    background-color: #999;
    color: white;
}

.btn-remove:hover {
    background-color: #777;
}

.submission-link {
    display: inline-block;
    color: var(--spanish-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    border-bottom: 2px solid var(--spanish-gold);
}

/* About Section */
.about-section {
    background-color: white;
    padding: 3rem 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--spanish-burgundy);
    font-weight: 700;
    white-space: nowrap;
}

.accent-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--spanish-gold);
    border-radius: 2px;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--spanish-gold);
}

.social-links h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--spanish-burgundy);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    color: var(--spanish-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--spanish-burgundy);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--spanish-burgundy);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--spanish-navy);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-content a {
    color: var(--spanish-gold);
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid var(--spanish-gold);
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-link {
        padding: 0.75rem 2rem;
        display: block;
        text-align: left;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }

    .accent-line {
        width: 100%;
    }

    .homepage-sections {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .article-header {
        flex-direction: column;
    }

    .article-date {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .submission-header {
        flex-direction: column;
    }

    .submission-section {
        align-self: flex-start;
    }

    .submission-actions {
        flex-direction: column;
    }

    .btn-approve,
    .btn-reject,
    .btn-remove {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.85rem;
    }
}
