/* Time Breakers - Simple, Consistent Typography */

/* Use only these font sizes:
   - 2rem for main headings
   - 1.25rem for subheadings  
   - 1rem for body text
   - 0.875rem for small text
*/

/* Hero Section */
.time-breakers-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Time fracture effect background */
.time-breakers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.trilogy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

/* Glitch effect for title */
.trilogy-title::before,
.trilogy-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trilogy-title::before {
    animation: glitch-1 2.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.trilogy-title::after {
    animation: glitch-2 2.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { 
        clip-path: inset(0 0 0 0); 
        transform: translate(0);
    }
    20% { 
        clip-path: inset(20% 0 30% 0); 
        transform: translate(-2px, 2px);
    }
    40% { 
        clip-path: inset(50% 0 20% 0); 
        transform: translate(2px, -2px);
    }
    60% { 
        clip-path: inset(10% 0 60% 0); 
        transform: translate(-2px, 0);
    }
    80% { 
        clip-path: inset(80% 0 5% 0); 
        transform: translate(1px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 100% { 
        clip-path: inset(0 0 0 0); 
        transform: translate(0);
    }
    20% { 
        clip-path: inset(60% 0 20% 0); 
        transform: translate(2px, -1px);
    }
    40% { 
        clip-path: inset(20% 0 50% 0); 
        transform: translate(-2px, 1px);
    }
    60% { 
        clip-path: inset(40% 0 40% 0); 
        transform: translate(1px, 0);
    }
    80% { 
        clip-path: inset(5% 0 80% 0); 
        transform: translate(-1px, -2px);
    }
}

.trilogy-tagline {
    font-size: 1.25rem;  /* Consistent */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;  /* Standard body text */
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* Story Section */
.story-introduction {
    padding: 4rem 0;
    background: white;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1rem;  /* Same as body */
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.emphasis {
    font-size: 1.25rem;  /* Subheading size */
    font-weight: 600;
    color: var(--purple-dark);
    text-align: center;
    margin: 2rem 0;
}

.story-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--purple-light);
    border-radius: 0 8px 8px 0;
}

.story-quote p {
    font-size: 1rem;  /* Same as body */
    font-style: italic;
    color: var(--text-dark);
    margin: 0;
}

/* Infinity Section */
.infinity-section {
    background: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
}

.infinity-section h2 {
    font-size: 1.25rem;  /* Same as emphasis text */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.infinity-text {
    font-size: 1rem;  /* Body text */
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.truth-emphasis {
    font-size: 1.25rem;  /* Subheading */
    font-weight: 700;
    color: var(--purple-dark);
}

.truth-conclusion {
    font-size: 1rem;  /* Body text */
    font-style: italic;
    color: var(--text-dark);
}

/* Characters Section */
.characters-preview h2 {
    font-size: 2rem;  /* Main heading */
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.character-card h3 {
    font-size: 1.25rem;  /* Subheading */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.character-card p {
    font-size: 1rem;  /* Body text */
    color: var(--text-dark);
    line-height: 1.6;
}

/* Coming Soon Section */
.coming-soon-title {
    font-size: 2rem;  /* Main heading */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon-text {
    font-size: 1.25rem;  /* Subheading */
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-signup p {
    font-size: 1rem;  /* Body text */
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Keep the rest of the styles but with consistent sizing */
.characters-preview {
    padding: 4rem 0;
    background: white;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.character-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-light);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.coming-soon {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.newsletter-signup {
    max-width: 500px;
    margin: 0 auto;
}

.notify-form {
    display: flex;
    gap: 1rem;
}

.notify-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}

.notify-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.notify-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.notify-form .btn-primary {
    background: white !important;
    color: #764ba2 !important;
    border: none;
    white-space: nowrap;
}

.notify-form .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

/* Book Availability Section */
.book-availability {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-availability h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.availability-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.purchase-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.affiliate-disclosure {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-style: italic;
}

.upcoming-books {
    text-align: center;
    margin-bottom: 2rem;
}

.upcoming-books h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* Time Breakers Gallery */
.timebreakers-gallery {
    padding: 4rem 0;
    background: var(--bg-light);
}

.timebreakers-gallery h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #1a1a2e;
}

/* Responsive */
@media (max-width: 768px) {
    .trilogy-title,
    .infinity-section h2,
    .characters-preview h2,
    .coming-soon-title {
        font-size: 1.5rem;  /* Smaller on mobile */
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .carousel-wrapper {
        height: 400px;
    }
}