/*
Theme Name:   Neocursive Design Site
Author:       Jesse Henderson
Description:  Custom portfolio theme with 3D gallery support.
Version:      1.0.0
Tags:         portfolio, custom, responsive
Text Domain:  neocursive
*/

/* NOTE: We are using Tailwind CSS via CDN for this theme (loaded in functions.php).
   You can add custom overrides here if needed. 
*/

/* =========================================
   1. GLOBAL TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Reddit Sans', sans-serif;
    color: #1f2937; /* Tailwind gray-800 */
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .gallery-title {
    font-family: 'Goldman', sans-serif;
}

.gallery-text {
    font-family: 'Reddit Sans', sans-serif;
}

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
/* Fix for the Hero Text size */
.sub-header-hero {
    font-size: 2.5rem !important; /* Forces the large size */
    text-transform: uppercase;
    font-weight: 700;
}

/* Header Text Shadow for better readability over images */
.text-shadow-lg {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* =========================================
   3. BACKGROUNDS & IMAGES
   ========================================= */
/* NOTE: These are fallbacks. The actual images are handled 
   by the WordPress Customizer settings in index.php 
*/

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-header {
    background-size: cover;
    background-position: center;
}

/* Gallery Header Background */
.header-bg {
    background-size: cover;
    background-position: center;
}

/* =========================================
   4. COMPONENT OVERRIDES
   ========================================= */
/* Custom hover effects for gallery cards if not covered by Tailwind */
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
/* --- Navigation Accessibility & Layout --- */

/* Basic Reset for the Nav List */
.primary-menu, .primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Accessible Navigation Bar */
.main-navigation {
    background-color: #000; /* High contrast black */
    padding: 1rem 1.5rem;
    font-family: 'Goldman', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ADA Focus & Hover States */
.main-navigation a:hover, 
.main-navigation a:focus {
    background-color: #ffffff;
    color: #000000;
    outline: 2px solid #ffffff; /* Visual indicator for keyboard users */
    outline-offset: -4px;
}

/* Responsive Logic */
@media (max-width: 768px) {
    .primary-menu {
        flex-direction: column;
        display: none; /* Hidden by default on mobile */
    }
    
    /* When a 'toggled' class is added via JS */
    .main-navigation.toggled .primary-menu {
        display: block;
        padding-top: 1rem;
    }
}

@media (min-width: 769px) {
    .primary-menu {
        justify-content: flex-end;
    }
}

/* Temporarily hide the navigation */
.main-navigation {
    display: none !important;
}
/* Ensure all standard pages are centered and legible */
.type-page .entry-content {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


.logo-overhang {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centering logic */
    left: 24px; /* Matches Tailwind's px-6 */
    z-index: 50;
}

.logo-overhang img {
    height: 160px; /* Adjust this to make it "hang" more or less */
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* Refine Homepage Prose for the Gradient */
.welcome-area .entry-content p {
    color: rgba(255, 255, 255, 0.85); /* Slightly off-white for better readability */
    line-height: 1.8;
    margin-bottom: 2rem;
}

.welcome-area .entry-content h2, 
.welcome-area .entry-content h3 {
    color: #ffffff;
    font-family: 'Goldman', sans-serif;
    letter-spacing: 2px;
}

/* This targets the entire browser window */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* The 'fixed' property ensures the gradient stays still while you scroll */
    background: linear-gradient(135deg, #111827 0%, #3a92c6 50%, #372198 100%) fixed !important;
    color: #ffffff;
}

/* Ensure the header and footer don't have their own conflicting backgrounds */
header, footer, main {
    background: transparent !important;
}

/* =========================================
   5. HOMEPAGE PORTFOLIO CARDS
   ========================================= */

/* The Grid Container */
#gallery-nav {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

/* Individual Card Styling */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem; /* Smooth rounded corners */
    background: #000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle boundary */
}

/* Lift effect on hover */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Image behavior inside the card */
.card img {
    width: 100%;
    height: 350px; /* Fixed height for a balanced grid */
    object-fit: cover;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.6s ease, filter 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1);
}

/* Goldman Title Overlay */
.card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #ffffff;
    font-family: 'Goldman', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    z-index: 10;
}

/* Subtle glow border that appears on hover */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 1rem;
    transition: border-color 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.card:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure the gallery nav has clear vertical separation on mobile */
@media (max-width: 768px) {
    #gallery-nav {
        gap: 2.5rem; /* More space between stacked cards on mobile */
    }
    
    .card {
        margin-bottom: 0.5rem; /* Extra breathing room */
    }
}

/* Desktop spacing refinement */
@media (min-width: 769px) {
    #gallery-nav {
        gap: 1.5rem; /* Tight, professional grid for desktop */
    }
}

/* Standard Page Content Formatting */
.prose p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #d1d5db; /* text-gray-300 */
}

.prose h2, .prose h3 {
    font-family: 'Goldman', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

/* Ensure images in the content canvas look premium */
.prose img {
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
}

.social-icon-link:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}