/*
Theme Name: Olive Biography
Theme URI: https://oliveloaded.com
Author: Olive Biography
Description: Premium biography blog with gradient color scheme (Indigo #6366f1, Pink #ec4899, Orange #f97316)
Version: 2.0
*/

/* ========== PROFESSIONAL GRADIENT COLOR SCHEME ==========
   Indigo: #6366f1 (Deep purple-blue - trustworthy)
   Pink: #ec4899 (Vibrant magenta-pink - energetic)
   Orange: #f97316 (Warm amber-orange - friendly)
========================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 50%, #fff7ed 100%);
    color: #1f2937;
    line-height: 1.6;
}

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

/* ========== HEADER GRADIENT ========== */
.site-header {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(99,102,241,0.3);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: headerShimmer 15s infinite linear;
}

@keyframes headerShimmer {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(360deg); }
}

.site-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.site-title a {
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.site-title a:hover {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.site-description {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Navigation Menu */
.main-navigation {
    background: rgba(0,0,0,0.2);
    padding: 12px 0;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.2);
    color: #f97316;
}

/* ========== BIG BANNER ========== */
.featured-banner {
    margin-bottom: 60px;
    position: relative;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.banner-post {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out;
}

.banner-image {
    height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.banner-post:hover .banner-image {
    transform: scale(1.03);
}

.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.85) 0%, rgba(236,72,153,0.7) 50%, rgba(249,115,22,0.6) 100%);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    color: white;
    z-index: 2;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.banner-content h2 a {
    color: white;
    text-decoration: none;
}

.banner-content h2 a:hover {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-meta {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.85;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-read-more {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-read-more:hover {
    background: linear-gradient(135deg, #ec4899, #6366f1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

/* ========== POST GRID ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 45px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #f97316);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(99,102,241,0.15);
}

.card-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 22px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.card-content h3 a:hover {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

/* ========== SINGLE POST ========== */
.single-post {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2, .post-content h3 {
    margin: 30px 0 15px;
    color: #6366f1;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ========== PAGINATION ========== */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #6366f1;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
}

/* ========== SEARCH FORM ========== */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.search-form button {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-form button:hover {
    background: linear-gradient(135deg, #ec4899, #f97316);
    transform: translateY(-2px);
}

/* ========== 404 PAGE ========== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 24px;
}

.error-404 h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, #6366f1, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #9ca3af;
    text-align: center;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 4px solid;
    border-image: linear-gradient(135deg, #6366f1, #ec4899, #f97316);
    border-image-slice: 1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-widgets h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-widgets ul {
    list-style: none;
}

.footer-widgets li {
    margin-bottom: 10px;
}

.footer-widgets a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widgets a:hover {
    color: #f97316;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-content h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .banner-image { height: 400px; }
    .banner-content { padding: 25px; }
    .banner-content h2 { font-size: 1.6rem; }
    .banner-content p { display: none; }
    .posts-grid { grid-template-columns: 1fr; }
    
    .card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
        padding: 12px;
    }
    .card-image { flex: 0 0 100px; height: 100px; }
    .card-content { flex: 1; padding: 0; }
    .card-excerpt { display: none; }
    .single-post { padding: 20px; }
    .post-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .banner-image { height: 320px; }
    .card-image { flex: 0 0 80px; height: 80px; }
}