/* Testimony Mode Styles */

.testimony-mode-active {
    overflow-x: hidden;
}

/* Testimony Toggle Container with Slider */
.testimony-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 0;
    padding: 25px 40px;
    background: linear-gradient(145deg, #ffd700, #ffb300);
    border: 4px solid #fff;
    border-radius: 20px;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: testimonyPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 100;
    max-width: 600px;
}

@keyframes testimonyPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 2px 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(255, 215, 0, 0.7),
            0 0 60px rgba(255, 215, 0, 0.5),
            inset 0 2px 5px rgba(255, 255, 255, 0.4);
    }
}

.testimony-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: crossGlow 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes crossGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }
}

.testimony-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.testimony-text {
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.testimony-subtext {
    font-size: 10px;
    color: #333;
    font-style: italic;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
}

/* Toggle Switch Styles */
.testimony-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 50px;
    flex-shrink: 0;
}

.testimony-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.testimony-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #e53e3e, #c53030);
    border: 3px solid #fff;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 
        0 4px 15px rgba(229, 62, 62, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.testimony-slider:before {
    position: absolute;
    content: "";
    height: 36px;
    width: 36px;
    left: 7px;
    bottom: 4px;
    background: linear-gradient(145deg, #fff, #f0f0f0);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.testimony-switch input:checked + .testimony-slider {
    background: linear-gradient(145deg, #32cd32, #228b22);
    box-shadow: 
        0 4px 15px rgba(50, 205, 50, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.testimony-switch input:checked + .testimony-slider:before {
    transform: translateX(70px);
}

.slider-text {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    pointer-events: none;
    font-family: 'Press Start 2P', cursive;
}

.slider-text.off {
    right: 12px;
    color: #fff;
    opacity: 1;
}

.slider-text.on {
    left: 15px;
    color: #fff;
    opacity: 0;
}

.testimony-switch input:checked + .testimony-slider .slider-text.off {
    opacity: 0;
}

.testimony-switch input:checked + .testimony-slider .slider-text.on {
    opacity: 1;
}

/* Mobile Responsive - MUCH SMALLER */
@media (max-width: 768px) {
    .testimony-toggle-container {
        flex-direction: column;
        padding: 12px 20px;
        margin: 15px auto 0;
        gap: 10px;
        max-width: 90%;
    }
    
    .testimony-icon {
        font-size: 28px;
    }
    
    .testimony-info {
        text-align: center;
    }
    
    .testimony-text {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .testimony-subtext {
        font-size: 7px;
    }
    
    .testimony-switch {
        width: 85px;
        height: 38px;
    }
    
    .testimony-slider:before {
        height: 28px;
        width: 28px;
    }
    
    .testimony-switch input:checked + .testimony-slider:before {
        transform: translateX(47px);
    }
    
    .slider-text {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .testimony-toggle-container {
        padding: 10px 15px;
        margin: 10px auto 0;
        gap: 8px;
        max-width: 95%;
    }
    
    .testimony-icon {
        font-size: 24px;
    }
    
    .testimony-text {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .testimony-subtext {
        font-size: 6px;
    }
    
    .testimony-switch {
        width: 75px;
        height: 34px;
    }
    
    .testimony-slider:before {
        height: 24px;
        width: 24px;
        left: 5px;
        bottom: 3px;
    }
    
    .testimony-switch input:checked + .testimony-slider:before {
        transform: translateX(41px);
    }
    
    .slider-text {
        font-size: 6px;
    }
}

.testimony-container {
    display: none;
    min-height: 100vh;
    padding: 120px 20px 100px;
    background: linear-gradient(to bottom, 
        #000 0%, 
        #1a1a2e 20%, 
        #16213e 40%, 
        #0f3460 60%, 
        #4a90e2 80%, 
        #87ceeb 100%
    );
    position: relative;
    z-index: 5;
}

.testimony-container.active {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimony-header {
    text-align: center;
    margin-bottom: 100px;
    opacity: 0;
    animation: slideDown 1s ease-out forwards;
}

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

.testimony-header h1 {
    font-size: 48px;
    color: #4a90e2;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.8),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.4;
}

.testimony-header p {
    font-size: 16px;
    color: #ccc;
    font-family: 'Press Start 2P', cursive;
}

/* Story Section */
.testimony-story {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.story-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.story-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.story-item:nth-child(even) {
    flex-direction: row-reverse;
}

.story-icon {
    flex: 0 0 150px;
    font-size: 120px;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

.story-text {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #4a90e2;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.4);
    backdrop-filter: blur(10px);
}

.story-text p {
    font-size: 20px;
    color: #fff;
    line-height: 1.8;
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Final Salvation Section */
.salvation-finale {
    text-align: center;
    padding: 100px 20px;
    margin-top: 100px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease-out;
}

.salvation-finale.visible {
    opacity: 1;
    transform: scale(1);
}

.glowing-cross {
    font-size: 200px;
    color: #ffd700;
    text-shadow: 
        0 0 30px #ffd700,
        0 0 60px #ffd700,
        0 0 90px #ffd700,
        0 0 120px #ffa500,
        0 0 150px #ffa500;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 40px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.salvation-message {
    font-size: 24px;
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.8;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.salvation-message p {
    margin-bottom: 0;
}

/* Exit Button */
.exit-testimony-btn {
    position: fixed;
    top: 90px;
    right: 30px;
    background: linear-gradient(45deg, #e53e3e, #c53030);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-testimony-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.8);
}

/* Responsive Design - MUCH SMALLER */
@media (max-width: 768px) {
    .testimony-container {
        padding: 100px 15px 80px;
    }
    
    .testimony-header {
        margin-bottom: 60px;
    }
    
    .testimony-header h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .testimony-header p {
        font-size: 10px;
    }
    
    .testimony-story {
        padding: 20px 10px;
    }
    
    .story-item {
        flex-direction: column !important;
        gap: 15px;
        margin-bottom: 60px;
    }
    
    .story-icon {
        font-size: 60px;
        flex: 0 0 auto;
    }
    
    .story-text {
        padding: 20px;
    }
    
    .story-text p {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .salvation-finale {
        padding: 60px 15px;
        margin-top: 60px;
    }
    
    .glowing-cross {
        font-size: 100px;
        margin-bottom: 30px;
    }
    
    .salvation-message {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .exit-testimony-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 75px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .testimony-container {
        padding: 90px 10px 60px;
    }
    
    .testimony-header {
        margin-bottom: 40px;
    }
    
    .testimony-header h1 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .testimony-header p {
        font-size: 8px;
    }
    
    .testimony-story {
        padding: 15px 5px;
    }
    
    .story-item {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .story-icon {
        font-size: 50px;
    }
    
    .story-text {
        padding: 15px;
    }
    
    .story-text p {
        font-size: 9px;
        line-height: 1.5;
    }
    
    .salvation-finale {
        padding: 40px 10px;
        margin-top: 40px;
    }
    
    .glowing-cross {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .salvation-message {
        font-size: 10px;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .exit-testimony-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 70px;
        right: 10px;
    }
}

/* Hide main content when testimony mode is active */
.testimony-mode-active .main-container,
.testimony-mode-active .latest-video-section,
.testimony-mode-active .site-footer {
    display: none;
}
