/* Craters Through Time Page Styles */

.craters-main {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 80px;
}

/* Hero Section */
.craters-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-content .page-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px var(--accent-primary);
}

.title-icon {
    display: inline-block;
    margin-right: 1rem;
    font-size: 3rem;
    animation: planetRotate 10s linear infinite;
}

@keyframes planetRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.crater-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.crater-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: craterPulse 4s ease-in-out infinite;
}

.crater-ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 71, 87, 0.6);
    animation-delay: 0s;
}

.crater-ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-color: rgba(255, 165, 0, 0.7);
    animation-delay: 1s;
}

.crater-ring-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-color: rgba(0, 212, 255, 0.8);
    animation-delay: 2s;
}

.crater-center {
    position: absolute;
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, #fff 0%, #ff4757 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: centerGlow 2s ease-in-out infinite alternate;
}

@keyframes craterPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes centerGlow {
    0% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 50px rgba(255, 71, 87, 1);
    }
}

/* Introduction Section */
.intro-section {
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccd6f6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    background: rgba(26, 26, 46, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.highlight-item p {
    color: #8892b0;
    line-height: 1.6;
}

/* Story Map Section */
.story-map-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.story-map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b19cd9;
    margin-top: 1rem;
}

.story-map-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.story-map-frame {
    background: rgba(22, 33, 62, 0.4);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.story-map-frame:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.2);
}

.story-map-frame iframe {
    display: block;
    width: 100%;
    height: 800px;
    border: none;
}

.story-map-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.info-card h4 {
    font-family: 'Orbitron', monospace;
    color: #7c3aed;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    color: #ccd6f6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* Notable Craters Section */
.notable-craters-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.craters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.crater-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.crater-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.crater-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.crater-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.8) 100%);
}

.crater-image.chicxulub {
    background-image: linear-gradient(45deg, #ff4757, #ff6b35);
}

.crater-image.vredefort {
    background-image: linear-gradient(45deg, #7c3aed, #00d4ff);
}

.crater-image.sudbury {
    background-image: linear-gradient(45deg, #ffa502, #ff9ff3);
}

.crater-image.barringer {
    background-image: linear-gradient(45deg, #54a0ff, #5f27cd);
}

.crater-info {
    padding: 1.5rem;
}

.crater-info h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.crater-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crater-size,
.crater-age {
    background: rgba(124, 58, 237, 0.2);
    color: #b19cd9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.crater-info p {
    color: #8892b0;
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 212, 255, 0.2));
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #ccd6f6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.cta-icon {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-map-container {
        grid-template-columns: 1fr;
    }
    
    .story-map-info {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .craters-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content .page-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .crater-animation {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .story-map-info {
        flex-direction: column;
    }
    
    .story-map-frame iframe {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .craters-main {
        padding-top: 60px;
    }
    
    .hero-content .page-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .intro-highlights {
        grid-template-columns: 1fr;
    }
    
    .craters-grid {
        grid-template-columns: 1fr;
    }
    
    .story-map-frame iframe {
        height: 500px;
    }
}

/* Iframe Fallback Styles */
.iframe-fallback {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.3);
    min-height: 500px;
}

/* CSP Notice */
.csp-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.notice-icon {
    font-size: 2rem;
    color: #ffc107;
}

.notice-text h4 {
    color: #ffc107;
    margin: 0 0 0.5rem 0;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
}

.notice-text p {
    color: #ccd6f6;
    margin: 0;
    font-size: 0.9rem;
}

/* Fallback Buttons */
.fallback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.fallback-button.primary {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    transform: scale(1.1);
}

.fallback-button.secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

/* Story Preview */
.story-preview {
    margin-top: 2rem;
    text-align: left;
}

.story-preview h4 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.fallback-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.fallback-content p {
    font-size: 1.1rem;
    color: #ccd6f6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.fallback-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    margin-bottom: 3rem;
}

.fallback-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.fallback-icon {
    font-size: 1.3rem;
}

.fallback-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.preview-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(22, 33, 62, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.preview-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.preview-icon {
    font-size: 2rem;
    min-width: 60px;
}

.preview-text {
    text-align: left;
}

.preview-text h5 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.preview-text p {
    color: #8892b0;
    margin: 0;
    font-size: 0.9rem;
}

/* Loading State */
.story-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 15px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

/* Responsive Fallback */
@media (max-width: 768px) {
    .fallback-preview {
        gap: 1rem;
    }
    
    .preview-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .preview-text {
        text-align: center;
    }
    
    .fallback-content h3 {
        font-size: 1.5rem;
    }
}/* 
View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.toggle-btn {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn:hover,
.toggle-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Interactive Timeline Styles */
.timeline-container {
    background: rgba(22, 33, 62, 0.4);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.timeline-header p {
    color: #b19cd9;
    font-size: 1rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        #ff4757 0%, 
        #ff6b35 20%, 
        #ffa502 40%, 
        #00d4ff 60%, 
        #7c3aed 80%, 
        #b19cd9 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid #1a1a2e;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker.early {
    background: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
}

.timeline-marker.ancient {
    background: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.timeline-marker.mesozoic {
    background: #ffa502;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.6);
}

.timeline-marker.extinction {
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    animation: extinctionPulse 2s ease-in-out infinite;
}

.timeline-marker.recent {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.timeline-marker.modern {
    background: #b19cd9;
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.6);
}

@keyframes extinctionPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(0, 212, 255, 1);
    }
}

.timeline-content {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.timeline-content h4 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.timeline-date {
    display: block;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #ccd6f6;
    margin: 0;
    line-height: 1.6;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 8px;
        width: 20px;
        height: 20px;
    }
    
    .view-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-btn {
        width: 200px;
    }
}/* Timeli
ne Modal Styles */
.timeline-modal-content {
    max-width: 600px;
    width: 90%;
}

.timeline-detail-date {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.timeline-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.timeline-stats .stat-item {
    text-align: left;
}

.timeline-stats .stat-label {
    display: block;
    color: #8892b0;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.timeline-stats .stat-value {
    display: block;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1rem;
}

/* Enhanced Story Map Frame */
.story-map-frame {
    position: relative;
    overflow: hidden;
}

.story-map-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7c3aed, #00d4ff, #ff6b35, #7c3aed);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    border-radius: 17px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Timeline Modal */
@media (max-width: 768px) {
    .timeline-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .timeline-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}/* Em
bed Controls */
.embed-controls {
    background: rgba(124, 58, 237, 0.1) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

.embed-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.embed-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateX(5px);
}

.embed-btn:last-child {
    margin-bottom: 0;
}

.embed-icon {
    font-size: 1rem;
}

.external-link {
    background: rgba(124, 58, 237, 0.1) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    color: #7c3aed !important;
}

.external-link:hover {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.6) !important;
}

/* Enhanced Loading Indicator */
.story-map-loading {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    backdrop-filter: blur(10px);
}

.story-map-loading .loading-content {
    text-align: center;
    color: #00d4ff;
}

.story-map-loading .loading-spinner {
    margin: 0 auto 1rem;
}

.story-map-loading .loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    margin: 1rem auto;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    width: 0%;
    border-radius: 2px;
    animation: loadingProgress 8s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Iframe Enhancement */
.story-map-frame iframe {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Success Indicator */
.embed-success {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 15;
    animation: successFade 3s ease-out forwards;
}

@keyframes successFade {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Story Map Container - Clean and Centered */
.story-map-container {
    background: rgba(22, 33, 62, 0.4);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.story-map-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Story Header */
.story-header {
    margin-bottom: 2rem;
}

.story-header .header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.story-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #00d4ff;
    margin: 0 0 0.5rem 0;
}

.story-header p {
    color: #b19cd9;
    margin: 0;
}

/* Story Launch */
.story-launch {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.story-launch h4 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.story-launch p {
    color: #ccd6f6;
    margin: 0 0 1.5rem 0;
}

.story-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.story-launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.launch-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.note-icon {
    margin-right: 0.5rem;
}

/* Story Features */
.story-features {
    margin-top: 2rem;
}

.story-features h4 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(26, 26, 46, 0.6);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    color: #ccd6f6;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-map-container {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .story-header .header-icon {
        font-size: 2.5rem;
    }
    
    .story-header h3 {
        font-size: 1.5rem;
    }
} /* Rem
ove borders from story map inner containers */
.story-map-card {
    border: none !important;
    outline: none !important;
}

.floating-container {
    border: none !important;
    outline: none !important;
}

.card-content {
    border: none !important;
    outline: none !important;
}

.story-header {
    border: none !important;
    outline: none !important;
}