/*
Theme Name: Children's Book 3D Pro
Theme URI: https://your-site.com
Author: Your Name
Description: 3D professional children's ebook membership theme with pricing tables
Version: 2.0.0
License: GPL v2 or later
Text Domain: childrensbook
*/

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

body {
    font-family: 'Poppins', 'Comic Neue', sans-serif;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFE8D6 100%);
    color: #2C1810;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3D Header Effect */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transform: translateZ(20px);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateZ(10px);
}

.logo-icon {
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.site-title a {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #FF6B4A, #FF8C42, #FFD93D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(255,107,74,0.2);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 600;
    color: #2C1810;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: #FF8C42;
    transform: translateY(-2px);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8C42, #FF6B4A);
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

.membership-btn {
    background: linear-gradient(135deg, #FF8C42, #FF6B4A);
    color: white !important;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,74,0.3);
    text-decoration: none;
}

.membership-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,74,0.4);
}

/* 3D Hero Slider */
.hero-slider {
    position: relative;
    margin: 40px 0 80px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.swiper-container {
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    transform: translateZ(0);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 600px;
    padding: 0 60px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content h2 {
    font-size: 56px;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 28px;
}

.slide-btn {
    background: linear-gradient(135deg, #FF8C42, #FF6B4A);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.slide-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,140,66,0.8);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: #FF8C42;
    opacity: 1;
    transform: scale(1.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    background: linear-gradient(135deg, #FF6B4A, #FF8C42);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* 3D Cards */
.card-3d {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 40px rgba(255,140,66,0.2);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.card-3d:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 3D Pricing Tables */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C1810, #4A2E1E);
    border-radius: 60px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,140,66,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.pricing-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 60px rgba(0,0,0,0.2);
}

.pricing-card.popular {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FFF, #FFF9F0);
    border: 3px solid #FF8C42;
    box-shadow: 0 30px 50px rgba(255,140,66,0.3);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #FFD93D, #FF8C42);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pricing-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C1810;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: #FF6B4A;
    margin: 20px 0;
}

.price span {
    font-size: 18px;
    color: #999;
}

.price small {
    font-size: 16px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.features-list li::before {
    content: '✓';
    color: #FF8C42;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #FF8C42, #FF6B4A);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,107,74,0.4);
}

/* Toggle Switch for Monthly/Yearly */
.pricing-toggle {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.toggle-switch {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 50px;
}

.toggle-option {
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 600;
    color: white;
}

.toggle-option.active {
    background: white;
    color: #FF6B4A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.save-badge {
    background: #FFD93D;
    color: #2C1810;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

/* 3D Grids */
.features-grid,
.classes-grid,
.testimonials-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Testimonial Cards */
.testimonial-3d {
    background: white;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-3d:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(255,140,66,0.2);
}

.stars {
    color: #FFD93D;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1a0f0a, #2C1810);
    color: #FFE8D6;
    padding: 60px 0 24px;
    border-radius: 50px 50px 0 0;
    margin-top: 80px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #FFDDB0;
    text-decoration: none;
    line-height: 2;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #FF8C42;
    transform: translateX(5px);
    display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .swiper-container { height: 400px; }
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
    .slide-content { padding: 0 24px; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-grid { gap: 20px; }
}
