/* ============================================
   USAPeople.us - Main Stylesheet
   Patriotic Theme
   ============================================ */

:root {
    --navy-blue: #1e3a8a;
    --patriot-red: #b91c1c;
    --white: #ffffff;
    --gold: #d4af37;
    --black: #000000;
    --light-beige: #f5f5dc;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--light-beige);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER & BANNER
   ============================================ */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-banner {
    width: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--patriot-red);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    background: var(--navy-blue);
    border-bottom: 2px solid var(--gold);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--gold);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-content {
    padding: 2rem 0;
    min-height: calc(100vh - 400px);
}

/* ============================================
   BLOG POSTS
   ============================================ */

.posts-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--patriot-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.post-card-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy-blue);
}

.post-title a {
    color: var(--navy-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--patriot-red);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-excerpt {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--navy-blue);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: var(--patriot-red);
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--patriot-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #991b1b;
}

/* ============================================
   SINGLE POST VIEW
   ============================================ */

.post-single {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--navy-blue);
}

.post-single .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
}

.post-single .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

.post-single .post-content p {
    margin-bottom: 1.5rem;
}

.post-single .post-content h2 {
    color: var(--navy-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--patriot-red);
    padding-left: 1rem;
}

.post-single .post-content h3 {
    color: var(--patriot-red);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */

.social-share-container {
    background: var(--light-gray);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--navy-blue);
}

.share-title {
    color: var(--navy-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-icon {
    width: 20px;
    height: 20px;
}

/* Facebook Button */
.facebook-btn {
    background: #1877f2;
}

.facebook-btn:hover {
    background: #0d65d9;
}

/* X (Twitter) Button */
.twitter-btn {
    background: #000000;
}

.twitter-btn:hover {
    background: #333333;
}

/* LinkedIn Button */
.linkedin-btn {
    background: #0a66c2;
}

.linkedin-btn:hover {
    background: #004182;
}

/* Instagram Button */
.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #d87e2d 0%, #c95a32 25%, #b81f39 50%, #a81e59 75%, #981479 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-share-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .social-share-container {
        padding: 1rem;
    }
    
    .share-title {
        font-size: 1rem;
    }
    
    .social-share-buttons {
        gap: 0.5rem;
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--navy-blue);
}

.form-container h1 {
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.form-intro {
    background: var(--light-gray);
    padding: 1rem;
    border-left: 4px solid var(--navy-blue);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy-blue);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--patriot-red);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #991b1b;
}

.btn-primary {
    background: var(--navy-blue);
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-error {
    background: #fee;
    color: #991b1b;
    border-left-color: var(--patriot-red);
}

.alert-success {
    background: #efe;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-info {
    background: #eff6ff;
    color: var(--navy-blue);
    border-left-color: var(--navy-blue);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--navy-blue);
    text-decoration: none;
    border: 2px solid var(--navy-blue);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--navy-blue);
    color: var(--white);
}

.pagination .current {
    background: var(--patriot-red);
    color: var(--white);
    border-color: var(--patriot-red);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--gold);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-style: italic;
    color: var(--gold);
    font-weight: 600;
    margin-top: 1rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--navy-blue);
}

.profile-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: var(--navy-blue);
}

.profile-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: var(--navy-blue);
    min-width: 120px;
}

.info-value {
    color: var(--text-dark);
}

/* ============================================
   MISSION STATEMENT
   ============================================ */

.mission-statement {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1e40af 100%);
    border-left: 6px solid var(--gold);
    border-right: 6px solid var(--gold);
    margin: 2rem 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mission-content {
    padding: 2rem;
    text-align: center;
}

.mission-content h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--patriot-red);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.mission-content p {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

/* ============================================
   POSTS SECTION
   ============================================ */

.posts-section {
    margin-top: 2rem;
}

.posts-section h1 {
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.no-posts {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-posts p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* ============================================
   ABOUT THE FOUNDER
   ============================================ */

.about-founder {
    background: var(--light-beige);
    padding: 3rem 0;
}

.about-founder h1 {
    text-align: center;
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
}

.founder-profile {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.founder-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.founder-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.founder-bio {
    flex: 2 1 500px;
    color: var(--text-dark);
}

.founder-bio h2 {
    color: var(--patriot-red);
    margin-bottom: 1rem;
}

.founder-bio p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ============================================
   USA MADE DIRECTORY
   ============================================ */

.directory-page {
    padding: 2rem 0;
}

.directory-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-header h1 {
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.directory-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.category-filter {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter label {
    font-weight: 600;
    color: var(--navy-blue);
}

.category-filter select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    background: var(--white);
    border-left: 4px solid var(--patriot-red);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.directory-category-badge {
    display: inline-block;
    background: var(--navy-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.directory-card h2 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.directory-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.directory-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.directory-card .btn {
    align-self: flex-start;
}

/* ============================================
   HONEYPOT (Anti-Bot)
   ============================================ */

.honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .banner-image {
        max-height: 200px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .post-single .post-title {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mission-content {
        padding: 1.5rem;
    }
    
    .mission-content h2 {
        font-size: 1.5rem;
    }
    
    .mission-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .founder-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .founder-bio h2 {
        margin-top: 1.5rem;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-filter select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-content {
        padding: 1rem 0;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    padding: 2rem 0;
}

.contact-page h1 {
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--navy-blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-section,
.contact-info-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form-section {
    border-top: 4px solid var(--navy-blue);
}

.contact-info-section {
    border-top: 4px solid var(--patriot-red);
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--patriot-red);
}

.contact-info-card:last-child {
    margin-bottom: 0;
}

.contact-info-card h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-info-card p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-info-card ul {
    list-style: none;
    padding-left: 0;
}

.contact-info-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.contact-info-card ul li:last-child {
    border-bottom: none;
}

.contact-info-card ul li a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-card ul li a:hover {
    color: var(--patriot-red);
}

.mission-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--navy-blue);
}

/* Responsive Design for Contact Page */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-page h1 {
        font-size: 1.75rem;
    }
    
    .contact-intro {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1rem;
    }
    
    .contact-info-card {
        padding: 1rem;
    }
}

/* ============================================
   COMMENTS SYSTEM
   ============================================ */

.comments-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--navy-blue);
}

.comments-title {
    color: var(--navy-blue);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.comment-form-container {
    background: var(--light-beige);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--patriot-red);
}

.comment-form-container h3 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.comment-note {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: 8px;
    color: #6b7280;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: var(--light-beige);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--navy-blue);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.comment-author {
    color: var(--navy-blue);
    font-size: 1.1rem;
}

.comment-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-btn {
    background: var(--patriot-red);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.reply-btn:hover {
    background: #991b1b;
}

.comment-replies {
    margin-top: 1.5rem;
}

/* Nested comment styling */
.comment-item .comment-item {
    background: var(--white);
    border-left-color: var(--patriot-red);
}

.comment-item .comment-item .comment-item {
    background: var(--light-gray);
    border-left-color: var(--gold);
}

@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .comment-form-container {
        padding: 1.5rem;
    }
    
    .comment-item {
        margin-left: 0 !important;
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-replies .comment-item {
        margin-left: 20px !important;
    }
}

/* ============================================
   ADVERTISEMENT PLACEMENTS
   ============================================ */

/* Single Bottom Banner Ad - Between Content and Footer */
.bottom-ads-section {
    background: var(--light-beige);
    padding: 2rem 0;
    margin-top: 3rem;
}

.bottom-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-ad {
    width: 500px;
    height: 90px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Make bottom ad responsive */
@media (max-width: 768px) {
    .bottom-ads-section {
        padding: 1rem 0;
        margin-top: 2rem;
    }
    
    .bottom-ad {
        width: 95%;
        max-width: 500px;
        height: auto;
        min-height: 90px;
    }
}

/* ============================================
   CATEGORY PAGE STYLES
   Add this to your style.css file (around line 800)
   ============================================ */

.category-page {
    padding: 2rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--navy-blue);
}

.category-header h1 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.category-count {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.category-header .btn {
    margin-top: 1rem;
}

/* Make category tags clearly clickable */
.category-tag {
    cursor: pointer;
    position: relative;
}

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

.category-tag:hover::after {
    width: 80%;
}

/* Responsive category page */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 1.75rem;
    }
    
    .category-header {
        padding: 1.5rem;
    }
}

/* ============================================
   MOBILE HAMBURGER MENU & NAVIGATION UPDATES
   Add this to your style.css file
   ============================================ */

/* ============================================
   MOBILE MENU TOGGLE BUTTON
   ============================================ */

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   ADMIN LINK STYLING (Distinctive)
   ============================================ */

.admin-link {
    background: var(--gold) !important;
    color: var(--navy-blue) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
}

.admin-link:hover {
    background: var(--patriot-red) !important;
    color: var(--white) !important;
}

/* ============================================
   NAVIGATION CONTAINER
   ============================================ */

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ============================================
   DESKTOP NAVIGATION (Default)
   ============================================ */

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

/* ============================================
   MOBILE NAVIGATION (768px and below)
   ============================================ */

@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    /* Hide menu by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--navy-blue);
        flex-direction: column;
        padding: 80px 0 2rem;
        box-shadow: -4px 0 10px rgba(0,0,0,0.3);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    /* Menu items in mobile */
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--white);
        text-align: left;
        border-bottom: none;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }
    
    /* Admin link in mobile */
    .admin-link {
        background: var(--gold) !important;
        color: var(--navy-blue) !important;
        margin: 0.5rem 1rem;
        border-radius: 4px;
        text-align: center !important;
    }
    
    /* Backdrop when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: 0;
    }
    
    .mobile-menu-toggle {
        padding: 0.75rem;
    }
}

/* ============================================
   NAVIGATION IMPROVEMENTS (All Sizes)
   ============================================ */

/* Better spacing for navigation items */
.nav-menu li {
    display: flex;
    align-items: center;
}

/* Consistent link styling */
.nav-menu a {
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Better focus states for accessibility */
.nav-menu a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Active page indicator (optional - add class to current page) */
.nav-menu a.current-page {
    border-bottom-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TABLET ADJUSTMENTS (769px - 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu a {
        padding: 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ADMIN-STYLE HAMBURGER MENU FOR PUBLIC PAGES
   Replace the mobile menu section in style.css with this
   ============================================ */

/* ============================================
   MOBILE NAV TOGGLE (Hamburger Button)
   ============================================ */

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: var(--navy-blue);
    border: 2px solid var(--gold);
    border-radius: 4px;
    width: 50px;
    height: 50px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    outline: none;
}

.mobile-nav-toggle:hover {
    background: var(--patriot-red);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger animation when active (X) */
.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* ============================================
   DESKTOP NAVIGATION (Default - Above 768px)
   ============================================ */

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .nav-container {
        display: block !important;
    }
}

/* ============================================
   MOBILE NAVIGATION (768px and below)
   ============================================ */

@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* Hide nav container on mobile */
    .nav-container {
        display: none;
    }
    
    /* Mobile menu - Sidebar from left (like admin panel) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px; /* Fixed width sidebar instead of full screen */
        height: 100vh;
        background: var(--navy-blue);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 90px 0 2rem;
        margin: 0;
        z-index: 1999;
        overflow-y: auto;
        /* CRITICAL: Start off-screen to the left */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 10px rgba(0,0,0,0.3);
        /* CRITICAL: Must be flex to show items */
        display: flex;
        list-style: none;
    }
    
    /* CRITICAL: Show menu when active - slide it into view */
    .nav-menu.mobile-active {
        transform: translateX(0);
    }
    
    /* Mobile menu items */
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        display: block;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.25rem 2rem;
        color: var(--white);
        text-align: left;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-bottom: none;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(212, 175, 55, 0.2);
        padding-left: 2.5rem;
        border-bottom: none;
    }
    
    /* Admin link styling in mobile */
    .admin-link {
        background: var(--gold) !important;
        color: var(--navy-blue) !important;
        font-weight: 700 !important;
        margin: 0.5rem 1rem !important;
        border-radius: 4px !important;
        text-align: center !important;
        padding: 1rem 2rem !important;
    }
    
    .admin-link:hover {
        background: var(--patriot-red) !important;
        color: var(--white) !important;
        padding-left: 2rem !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Backdrop overlay - shows to the RIGHT of the menu */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px; /* Start after the menu width */
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1998;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .mobile-nav-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .hamburger-line {
        width: 25px;
    }
    
    .nav-menu {
        width: 260px; /* Slightly narrower on small phones */
        padding-top: 80px;
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-menu a:hover {
        padding-left: 2rem;
    }
    
    /* Backdrop starts after narrower menu */
    body.mobile-menu-open::before {
        left: 260px;
    }
}

/* ============================================
   NAVIGATION IMPROVEMENTS
   ============================================ */

/* Better focus states for accessibility */
.mobile-nav-toggle:focus {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.nav-menu a:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    background: rgba(212, 175, 55, 0.2);
}

/* Smooth scrolling for menu */
.nav-menu {
    -webkit-overflow-scrolling: touch;
}

/* Active page indicator (optional - add .current-page class) */
.nav-menu a.current-page {
    background: rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--gold);
}

@media (max-width: 768px) {
    .nav-menu a.current-page {
        padding-left: 2.5rem;
    }
}

/* Add these styles to the end of your existing style.css file */

/* ============================================
   DIRECTORY IMAGE GALLERY STYLES
   ============================================ */

.directory-images {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.directory-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.directory-card:hover .directory-main-image {
    transform: scale(1.05);
}

.directory-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Directory card updates for images */
.directory-card {
    display: flex;
    flex-direction: column;
}

.directory-card .directory-images + .directory-categories {
    margin-top: 0;
}

/* Image preview in forms */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
}

.preview-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.preview-image span {
    display: block;
    font-size: 0.75rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .directory-main-image {
        height: 200px;
    }
    
    .directory-image-count {
        bottom: 5px;
        right: 5px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .image-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .directory-main-image {
        height: 180px;
    }
}
/* ----------------------------------------
   Post Card - Featured Image Thumbnail
---------------------------------------- */
.post-card-thumb {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--patriot-red);
    transition: opacity 0.3s ease;
}

.post-card-thumb:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .post-card-thumb {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .post-card-thumb {
        height: 150px;
    }
}

/* ----------------------------------------
   Single Post - Image Gallery
---------------------------------------- */
.post-image-gallery {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.post-image-gallery:has(.gallery-image:only-child) {
    grid-template-columns: 1fr;
}

.gallery-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
    .post-image-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}