/* Modern 3D Black Theme for Encounter Jesus Daily */

:root {
    /* Modern Font */
    --primary-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 3D Black Color Scheme */
    --primary-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #404040;
    --accent-gold: #ffd700;
    --accent-silver: #c0c0c0;
    --text-white: #ffffff;
    --text-light-gray: #e5e5e5;
    --background-dark: #0f0f0f;
    --card-dark: #1f1f1f;
}

/* Base styles with dark theme */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    line-height: 1.7;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--dark-gray) 100%);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Magazine Specific Styles */
.magazine-cover {
    background: linear-gradient(145deg, var(--card-dark), var(--medium-gray));
    border: 2px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.magazine-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.magazine-archive-item:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.magazine-content {
    font-family: var(--primary-font);
    line-height: 1.8;
}

.magazine-article h1 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.magazine-article h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.magazine-article h3 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.magazine-article p {
    color: var(--text-light-gray);
    margin-bottom: 1.5rem;
}

.magazine-article blockquote {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.magazine-article ol li {
    color: var(--text-light-gray);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.magazine-article ul li {
    color: var(--text-light-gray);
    margin-bottom: 0.5rem;
}

/* 3D Text Effects */
.text-3d-black {
    color: var(--text-white);
    text-shadow: 
        0 1px 0 var(--medium-gray),
        0 2px 0 var(--light-gray),
        0 3px 0 var(--light-gray),
        0 4px 0 var(--light-gray),
        0 5px 0 var(--light-gray),
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25);
    transform: translateY(-2px);
}

.text-3d-accent {
    color: var(--accent-gold);
    text-shadow: 
        0 1px 0 #b8860b,
        0 2px 0 #b8860b,
        0 3px 0 #b8860b,
        0 4px 0 #b8860b,
        0 5px 0 #b8860b,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(255,215,0,.3),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(255,215,0,.2),
        0 5px 10px rgba(255,215,0,.25);
    transform: translateY(-2px);
}

.hero-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Modern heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* Modern paragraph styling */
p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light-gray);
    margin-bottom: 1.5rem;
}

/* 3D Button Styles */
.btn-primary {
    background: linear-gradient(145deg, var(--primary-black), var(--dark-gray));
    color: var(--accent-gold);
    padding: 1.25rem 3rem;
    border-radius: 1rem;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(0,0,0,0.4),
        0 0 20px rgba(255,215,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary {
    background: linear-gradient(145deg, var(--card-dark), var(--medium-gray));
    color: var(--text-white);
    padding: 1.25rem 3rem;
    border: 2px solid var(--accent-silver);
    border-radius: 1rem;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        0 0 15px rgba(192,192,192,0.3);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Navigation with glass morphism */
nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--primary-font);
}

nav a {
    color: var(--text-white);
    font-weight: 500;
    letter-spacing: 0.015em;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

nav .text-xl {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-white);
}

/* 3D Cards */
.card-3d {
    background: linear-gradient(145deg, var(--card-dark), var(--medium-gray));
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 20px rgba(255,215,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Feature icons with 3D effect */
.icon-3d {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, var(--accent-gold), #b8860b);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.icon-3d:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.4),
        0 0 15px rgba(255,215,0,0.4);
}

.icon-3d i {
    color: var(--primary-black);
    font-size: 1.5rem;
}

/* Enhanced form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: var(--primary-font);
    font-size: 1rem;
    font-weight: 400;
    background: linear-gradient(145deg, var(--card-dark), var(--medium-gray));
    color: var(--text-white);
    border: 2px solid var(--light-gray);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light-gray);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 
        0 0 0 4px rgba(255,215,0,0.2),
        inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Labels with modern styling */
label {
    font-family: var(--primary-font);
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Scripture quote styling */
blockquote {
    font-family: var(--primary-font);
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.015em;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Monetization sections */
.premium-card {
    background: linear-gradient(145deg, var(--accent-gold), #b8860b);
    color: var(--primary-black);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 
        0 15px 30px rgba(255,215,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Loading animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Floating elements with 3D effect */
@keyframes float3d {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(180deg);
    }
}

.floating-3d {
    animation: float3d 12s ease-in-out infinite;
    color: var(--accent-gold);
    opacity: 0.3;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

/* Testimonial cards with 3D effect */
.testimonial-3d {
    background: linear-gradient(145deg, var(--card-dark), var(--medium-gray));
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-3d:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Stats with 3D numbers */
.stat-3d {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 
        0 2px 0 #b8860b,
        0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.05em;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b8860b, var(--accent-gold));
}

/* Responsive improvements */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .text-3d-black,
    .text-3d-accent {
        text-shadow: 
            0 1px 0 var(--medium-gray),
            0 2px 0 var(--light-gray),
            0 3px 5px rgba(0,0,0,0.3);
    }
    
    .card-3d {
        padding: 1.5rem;
    }
    
    .icon-3d {
        width: 3rem;
        height: 3rem;
    }
}

/* Success and error states for dark theme */
.success-state {
    background: linear-gradient(145deg, #065f46, #047857);
    border-color: #10b981;
    color: #a7f3d0;
}

.error-state {
    background: linear-gradient(145deg, #7f1d1d, #991b1b);
    border-color: #ef4444;
    color: #fca5a5;
}

/* Focus styles for dark theme */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Special effects */
.glow-text {
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
}

/* Monetization highlight sections */
.vip-section {
    background: linear-gradient(145deg, var(--primary-black), var(--dark-gray));
    border: 2px solid var(--accent-gold);
    position: relative;
}

.vip-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
    pointer-events: none;
}