/* Modern Consolidated Styles for Top Christian Authors */

:root {
    --primary-color: hsl(267, 43%, 40%);
    --secondary-color: hsl(276, 28%, 65%);
    --background-gradient: linear-gradient(145deg, hsl(270, 20%, 98%), hsl(270, 15%, 95%));
    --text-color: #2e2e2e;
    --accent-color: hsl(39, 60%, 70%);
    --card-background: #fff;
    --modal-background: #fff;
    --button-color: hsl(267, 43%, 45%);
    --button-hover: hsl(267, 43%, 35%);
    --footer-text-color: #d0d0d0;
    --footer-background-color: #252525;
    --loading-color: var(--secondary-color);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

/* Article Navigation */
.article-nav {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--button-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.nav-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.back-btn {
    background: #718096;
}

.back-btn:hover {
    background: #4a5568;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.nav-logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.header-content {
    text-align: center;
    padding: 20px;
}

#header h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

#header p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
}

#header {
    background: linear-gradient(135deg, var(--primary-color), hsl(267, 43%, 30%));
    padding: 1rem 2rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--button-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(25px);
}

#header img {
    margin-bottom: 0;
}

.author-card {
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.author-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.author-description {
    font-size: 1em;
    color: var(--text-color);
}

.author-links {
    margin-top: 12px;
}

.btn {
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--modal-background);
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 60%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--primary-color);
}

#search-container {
    margin-bottom: 30px;
    padding: 0 20px;
}

#author-search {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#author-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(94, 79, 162, 0.15);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

#loading-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#footer a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    #header {
        padding: 1rem 1rem 1.5rem;
    }

    #header h1 {
        font-size: 2em;
    }

    #header p {
        font-size: 1em;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .author-card img {
        width: 90px;
        height: 90px;
    }

    .modal-content {
        width: 85%;
        margin: 25% auto;
        padding: 20px;
    }

    .container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #header h1 {
        font-size: 1.6em;
    }

    .author-name {
        font-size: 1.2em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
