/*
Theme Name: Majekodunmi Tribute
Theme URI: https://wp.origindigital.co
Author: Origin Digital
Author URI: https://origindigital.co
Description: A tribute website for Chief Olufemi Majekodunmi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: majekodunmi-tribute
Tags: tribute, memorial, custom
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-bg: transparent;
    --color-text: #2C2C2C;
    --color-gold: #C9A84C;
    --color-gold-dark: #A8873A;
    --color-white: #FFFFFF;
    --color-light: rgba(250, 246, 238, 0.85);
    --color-border: #E0D4B8;
    --color-muted: #7A6D5A;
    --color-dark: #1A1A1A;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', Arial, sans-serif;
    --max-width: 1200px;
    --section-padding: 80px 20px;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.18);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: url("https://wp.origindigital.co/wp-content/uploads/2026/06/background.jpg");
    background-repeat: repeat;
    background-size: auto;
    background-repeat: repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SITE HEADER / HERO SECTION
   ============================================ */
.site-header {
    position: relative;
    background-color: #2C2417;
    background-image: url("https://wp.origindigital.co/wp-content/uploads/2026/06/background.jpg");
    background-repeat: repeat;
    background-size: auto;
    color: var(--color-white);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 10, 0.72);
    pointer-events: none;
    z-index: 0;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.hero-portrait-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

#chief-portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-gold);
    box-shadow: 0 0 0 10px rgba(201,168,76,0.15), 0 20px 60px rgba(0,0,0,0.5);
    margin: 0 auto;
}

.hero-portrait-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A3020 0%, #2C2417 100%);
    border: 5px solid var(--color-gold);
    box-shadow: 0 0 0 10px rgba(201,168,76,0.15), 0 20px 60px rgba(0,0,0,0.5);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--color-gold);
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 0 auto 24px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-dark);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
}

.nav-logo {
    margin-right: auto;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-gold);
    padding: 16px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu a {
    display: block;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--color-gold);
}

.nav-menu a:hover::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 8px;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-left: auto;
}

/* ============================================
   SECTION STYLES (shared)
   ============================================ */
.site-section {
    padding: var(--section-padding);
}

.site-section:nth-child(even) {
    background-color: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1rem;
}

/* ============================================
   BOOKS SECTION
   ============================================ */
#books {
    background-color: var(--color-bg);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.book-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.book-thumbnail {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: #E8DFC8;
}

.book-thumbnail-placeholder {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #E8DFC8 0%, #D4C9A8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 60px;
}

.book-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.book-description {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.6;
    flex: 1;
}

.book-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.book-link:hover {
    color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

.no-books-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--color-muted);
    font-style: italic;
}

/* ============================================
   TRIBUTES SECTION
   ============================================ */
#tributes {
    background-color: var(--color-light);
}

.tribute-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.tribute-form-wrapper h3,
.tributes-display h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Tribute Form */
.tribute-form {
    background: var(--color-white);
    padding: 36px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.form-group .help-text {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.form-message {
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.form-message.success {
    background-color: #F0FFF4;
    border: 1px solid #68D391;
    color: #276749;
    display: block;
}

.form-message.error {
    background-color: #FFF5F5;
    border: 1px solid #FC8181;
    color: #9B2C2C;
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
    color: var(--color-white);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tributes Display */
.tributes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tribute-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-gold);
    transition: box-shadow 0.3s ease;
}

.tribute-card:hover {
    box-shadow: var(--shadow-hover);
}

.tribute-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tribute-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    flex-shrink: 0;
}

.tribute-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    font-weight: 700;
    flex-shrink: 0;
}

.tribute-meta {
    flex: 1;
}

.tribute-author {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.tribute-date {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.tribute-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
}

.tribute-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 700;
}

.no-tributes-message {
    text-align: center;
    padding: 40px;
    color: var(--color-muted);
    font-style: italic;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ============================================
   DONATIONS SECTION
   ============================================ */
#donations {
    background-color: var(--color-bg);
}

.charity-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.charity-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.charity-intro p {
    color: var(--color-muted);
    font-size: 1rem;
}

.charity-link {
    color: var(--color-gold);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.bank-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bank-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.account-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.account-type {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 48px 20px;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.footer-dates {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    margin: 16px auto;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   SINGLE TRIBUTE PAGE
   ============================================ */
.page-wrapper {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--color-text);
    text-align: center;
}

.single-tribute-content {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 48px;
    box-shadow: var(--shadow);
}

.single-tribute-author {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.single-tribute-date {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.single-tribute-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
}

.single-tribute-photo {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   ARCHIVE (All Tributes page)
   ============================================ */
.archive-wrapper {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 48px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============================================
   ADMIN STYLES (tribute approval)
   ============================================ */
.tribute-manager-wrap {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tribute-approve-btn {
    background: #4CAF50 !important;
    color: #fff !important;
    border-color: #388E3C !important;
}

.tribute-reject-btn {
    background: #f44336 !important;
    color: #fff !important;
    border-color: #d32f2f !important;
}

.tribute-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending { background: #FFF3CD; color: #856404; }
.status-publish { background: #D4EDDA; color: #155724; }
.status-rejected { background: #F8D7DA; color: #721C24; }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 16px;
    }
    
    .nav-logo {
        display: none;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-menu a {
        padding: 16px 14px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .tribute-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .single-tribute-content {
        padding: 28px 20px;
    }
    
    #chief-portrait,
    .hero-portrait-placeholder {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .tribute-form {
        padding: 24px 16px;
    }
}

/* ============================================
   BACKGROUND IMAGE - GLOBAL OVERRIDE
   ============================================ */
html {
    background-image: url("https://wp.origindigital.co/wp-content/uploads/2026/06/background.jpg");
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
}
body {
    background-color: transparent !important;
    background-image: none !important;
}
.books-section,
.tributes-section,
.donations-section,
.site-main,
main,
.container {
    background-color: transparent !important;
}
