/* SPA Content & Page Styles */
/* Main content areas, hero sections, and page-specific styling */

/* SPA Content Container */
/* #spa-content styling moved to base.css to prevent conflicts */

.spa-content-wrapper {
    width: 100%;
    position: relative;
    flex: 1;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: var(--z-content);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    position: relative;
}

.content-section.dark {
    background: linear-gradient(135deg, #1a4d3a 0%, #2d5a47 100%);
    color: var(--text-light);
}

.content-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content-section.dark h1 {
    color: var(--secondary-color);
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section.dark h2 {
    color: var(--secondary-color);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Page Sections */
.page-section {
    padding: 0 0 60px 0;
    flex: 1;
    min-height: 300px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header .lead {
    font-size: 1.2rem;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

.section-body {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Hero Section */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-width: 140px;
    text-align: center;
}

.hero-btn:hover {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,1);
    text-decoration: none;
}

/* Mobile responsive adjustments - simplified (hero mobile sizing handled in base.css) */
@media (max-width: 480px) {
    .hero-content {
        padding: 40px 20px;
        box-sizing: border-box;
    }
}

/* Page Hero */
.page-hero {
    position: relative;
    height: var(--hero-height);
    min-height: var(--hero-height);
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 25%, var(--background-tertiary) 75%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Loading States */
.content-loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content transitions */
.spa-content-wrapper.loading {
    opacity: 0.6;
}

.spa-content-wrapper.ready {
    opacity: 1;
}