/*
Theme Name: The Fifth Pillar V8 COMPLETE
Theme URI: https://astrobility.com
Description: The revolutionary advancement of astrological practice - Fifth Pillar integrated cosmic wisdom platform V8 COMPLETE
Author: Astrobility
Version: 8.0 COMPLETE
Text Domain: astrobility-fifth-pillar-v8
Domain Path: /languages
*/

/* ============================================================================
   COSMIC TEMPLE FOUNDATION
   ========================================================================== */
:root {
    /* V8 Colors */
    --astro-gold: #FFD700;
    --astro-deep-space: #0B1426;
    --astro-cosmic-blue: #1E3A8A;
    --astro-nebula: #3B82F6;
    --astro-accent: #06B6D4;
    --astro-starlight: #F1F5F9;
    --astro-silver: #E2E8F0;
    --astro-love: #FF1493;
    --astro-cosmic-purple: #8B5CF6;
    
    /* Additional colors for current pages */
    --gold-bright: #fbbf24;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --personal-purple: #a78bfa;
    --relationship-gold: #ecc94b;
    --cosmic-gold: #ffd700;
}

/* ============================================================================
   GLOBAL & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--astro-deep-space);
    color: var(--astro-starlight);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--astro-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--astro-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================================
   COSMIC HEADER
   ========================================================================== */
.cosmic-header {
    background: linear-gradient(135deg, var(--astro-deep-space) 0%, var(--astro-cosmic-blue) 100%);
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.cosmic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(2px 2px at 20px 30px, white, transparent),
                radial-gradient(1px 1px at 50px 50px, white, transparent);
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: 1;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.cosmic-header h1 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--astro-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ============================================================================
   TEMPLE NAVIGATION
   ========================================================================== */
.temple-nav {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.temple-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.temple-nav a {
    color: var(--astro-starlight);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.temple-nav a:hover {
    background: var(--astro-cosmic-blue);
    border-color: var(--astro-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* ============================================================================
   PROFILE PAGE CONTAINERS
   ========================================================================== */
.cosmic-profile-page {
    padding: 2rem 0;
    min-height: 100vh;
}

.cosmic-profile-container,
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ============================================================================
   PROFILE HEADER
   ========================================================================== */
.profile-header {
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 3rem;
    position: relative;
}

.profile-header h1 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--personal-purple) 0%, var(--cosmic-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-small {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--astro-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.birth-info,
.profile-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================================================
   PROFILE CARDS
   ========================================================================== */
.profile-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--astro-cosmic-blue);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: cosmicRotate 20s linear infinite;
    z-index: 1;
}

@keyframes cosmicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-content {
    position: relative;
    z-index: 2;
}

/* ============================================================================
   FOUR PILLARS SECTION
   ========================================================================== */
.four-pillars {
    margin: 3rem 0;
}

.four-pillars h2 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pillar {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: var(--astro-accent);
}

.pillar:hover::before {
    opacity: 1;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pillar h3 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pillar-data {
    text-align: left;
}

.pillar-data p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.pillar-data strong {
    color: var(--astro-starlight);
    font-weight: 600;
}

/* ============================================================================
   PILLAR CARDS (Relationship Pages)
   ========================================================================== */
.pillar-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.pillar-card h3 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--astro-gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pillar-card .pillar-data {
    text-align: left;
}

.pillar-card .pillar-data p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.pillar-card .pillar-data strong {
    color: var(--astro-starlight);
}

/* ============================================================================
   SYSTEM CHAMBERS
   ========================================================================== */
.system-chamber {
    background: rgba(30, 58, 138, 0.1);
    border-left: 4px solid var(--astro-gold);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.chamber-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--astro-gold);
    margin-bottom: 1rem;
}

.chamber-content {
    color: var(--astro-silver);
    line-height: 1.6;
}

/* ============================================================================
   INTEGRATED READING SECTION
   ========================================================================== */
.integrated-reading,
.reading-section {
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.integrated-reading::before,
.reading-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    border-radius: 20px;
}

.integrated-reading h2,
.reading-section h2 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.reading-content {
    color: var(--astro-starlight);
    line-height: 1.9;
    font-size: 1.05rem;
    white-space: pre-wrap;
    position: relative;
    z-index: 1;
}

.reading-content p {
    margin-bottom: 1.2rem;
}

/* ============================================================================
   UPGRADE SECTION & TIERS
   ========================================================================== */
.upgrade-section {
    margin: 4rem 0;
    text-align: center;
}

.upgrade-section h2 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--cosmic-gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upgrade-intro {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.upgrade-tier {
    background: linear-gradient(135deg, var(--astro-cosmic-blue) 0%, var(--astro-cosmic-purple) 100%);
    border: 2px solid var(--astro-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgrade-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: var(--astro-accent);
}

.tier-price {
    font-size: 2.5rem;
    color: var(--astro-gold);
    font-weight: bold;
    margin: 1rem 0;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tier-features li {
    padding: 0.5rem 0;
    color: var(--astro-starlight);
}

.tier-features li::before {
    content: '⭐';
    margin-right: 0.5rem;
}

/* ============================================================================
   CTA CARDS & GRID
   ========================================================================== */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.cta-card:hover::before {
    opacity: 1;
}

.cta-card.featured {
    border: 3px solid var(--astro-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--astro-gold);
    color: var(--astro-deep-space);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.cta-card h3 {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--astro-starlight);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   BUTTONS
   ========================================================================== */
.cosmic-payment-btn,
.cosmic-button,
.btn,
.btn-primary,
.btn-secondary,
.btn-gold,
.cta-button {
    background: linear-gradient(135deg, var(--astro-gold) 0%, #FFA500 100%);
    color: var(--astro-deep-space);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

.cosmic-payment-btn:hover,
.cosmic-button:hover,
.btn:hover,
.btn-primary:hover,
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFA500 0%, var(--astro-gold) 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--astro-accent);
    color: var(--astro-accent);
}

.btn-secondary:hover {
    background: var(--astro-accent);
    color: var(--astro-starlight);
}

.btn-gold {
    background: linear-gradient(135deg, var(--astro-gold) 0%, var(--cosmic-gold) 100%);
    color: var(--astro-deep-space);
}

/* ============================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

input[type='text'],
input[type='email'],
input[type='date'],
input[type='time'],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(11, 20, 38, 0.6);
    color: var(--astro-starlight);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--astro-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--astro-starlight);
}

/* ============================================================================
   MODALS
   ========================================================================== */
.modal,
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: linear-gradient(135deg, var(--astro-deep-space) 0%, var(--astro-cosmic-blue) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid var(--astro-gold);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--astro-starlight);
}

.modal-content h3 {
    color: var(--astro-gold);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', 'Cinzel', serif;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    background: rgba(11, 20, 38, 0.6);
    color: var(--astro-starlight);
    margin-bottom: 1rem;
}

.email-status {
    color: var(--astro-accent);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================================================
   ENHANCED CONTENT SECTION
   ========================================================================== */
.enhanced-content {
    background: linear-gradient(135deg, var(--astro-cosmic-blue) 0%, var(--astro-cosmic-purple) 100%);
    padding: 3rem;
    border-radius: 12px;
    color: white;
    margin: 3rem 0;
    border: 2px solid var(--astro-gold);
}

.enhanced-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', 'Cinzel', serif;
    color: var(--astro-gold);
}

.enhanced-reading {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.8;
}

/* ============================================================================
   RELATIONSHIP PAGE SPECIFIC
   ========================================================================== */
.relationship-profile-page .profile-header {
    border-bottom-color: var(--relationship-gold);
}

.relationship-profile-page .profile-header h1 {
    background: linear-gradient(135deg, var(--relationship-gold) 0%, var(--cosmic-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================================
   LOADING ANIMATIONS
   ========================================================================== */
.cosmic-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--astro-cosmic-blue);
    border-radius: 50%;
    border-top-color: var(--astro-gold);
    animation: cosmicSpin 1s ease-in-out infinite;
}

@keyframes cosmicSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   SUCCESS & ERROR STATES
   ========================================================================== */
.cosmic-success,
.message.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.cosmic-error,
.message.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* ============================================================================
   FOOTER
   ========================================================================== */
.cosmic-footer,
.profile-footer {
    background: var(--astro-deep-space);
    border-top: 1px solid var(--astro-cosmic-blue);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.cosmic-footer p,
.profile-footer p {
    color: var(--astro-silver);
    margin: 0;
}

.profile-footer .logo-small {
    color: var(--astro-accent);
}

/* ============================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .cosmic-header h1 {
        font-size: 2.5rem;
    }
    
    .temple-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-card,
    .profile-container,
    .cosmic-profile-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .upgrade-tier,
    .cta-card {
        margin: 0.5rem 0;
        padding: 1.5rem;
    }
    
    .tier-price,
    .cta-price {
        font-size: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        padding: 2rem 1rem;
    }

    .integrated-reading,
    .reading-section {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .site-header,
    .temple-nav,
    .cosmic-header,
    .profile-footer,
    .cosmic-footer,
    .upgrade-section,
    .admin-bar,
    button,
    .btn,
    .cta-button,
    .cosmic-payment-btn {
        display: none !important;
    }

    .cosmic-profile-page,
    .profile-container,
    .cosmic-profile-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .profile-header,
    .integrated-reading,
    .reading-section,
    .pillar,
    .pillar-card,
    .profile-card {
        background: #f9f9f9 !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .profile-header h1,
    h2,
    h3,
    p,
    strong,
    .logo-small,
    .birth-info,
    .reading-content,
    .pillar-data p,
    .pillar-data strong {
        color: black !important;
        text-shadow: none !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }

    .profile-header {
        border-bottom: 2px solid black !important;
    }

    .logo-small {
        color: #666 !important;
    }
}