/* * Copyright (c) 2025 Schisto.XYZ
 * Licensed under CC BY-NC-ND 4.0.
 * Unauthorized duplication or redistribution is prohibited.
 */

@import 'https://fonts.googleapis.com/css?family=Roboto:300,400|Lobster|Source+Code+Pro|Rubik';
:root { --selector-height: 70px; --primary: #2563eb; }
body { font-family: Rubik, sans-serif; background: #f1f5f9; padding: 20px; }

/* Layout */
.controls { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom: 30px; }


/* The Container for the sticky elements */
.viewer-workspace {
    width: 100%;
    position: relative;
    margin-top: 20px; 
}
/* 1. Make the Selector Bar sticky at the very top */
.selector-bar {
    height: var(--selector-height);
    background: #ffffff;
    border-bottom: 2px solid #2563eb;
    position: sticky;
    top: 0; /* Sticks to the top of the browser */
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selector-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-content label {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    font-size: 0.9rem;
}

select {
    flex-grow: 1; /* Takes up remaining horizontal space */
    padding: 12px 15px;
    background: #f8fafc;
    border: 2px solid #cbd5e1; 
    border-radius: 6px;
    font-family: Roboto;
    font-size: 15px;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* --- Full-Bleed Viewer --- */
/* 2. Make the Viewer sticky directly below the selector */
#cirro-viewport {
    position: sticky;
    top: var(--selector-height); /* Sticks exactly below the bar */
    width: 100%;
    z-index: 90;
    background: #fff;
}

#cirro-div {
    width: 100%;
    height: calc(100vh - var(--selector-height)); 
    background: #f8fafc;
    overflow: hidden;
    
    /* Change from center to flex-start */
    display: flex;
    justify-content: center;
    align-items: flex-start; 
}

/* Optional: Add a nice transition when the iframe appears */
#cirro-iframe {
    width: 100%;
    height: 100%;
    border: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

#placeholder-content {
    text-align: center;
    color: #64748b;
    /* Push content down to roughly the top 1/3 of the available space */
    padding-top: 15vh; 
    animation: fadeIn 0.8s ease-out;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}


/* Adjusting footer to not have massive padding */
.site-footer {
    margin-top: 50px;
    padding: 40px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: "Source Code Pro";
}

/* Responsive Breakpoints */
@media (max-width: 1300px) { #results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { #results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { #results-grid { grid-template-columns: 1fr; } }

/* Header Styles */
.site-header {
    background: #131313; /* Dark slate color */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    top: 0;
    height: 35px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-logo {
    font-size: 28px;
    font-weight: 500;
    font-family: Lobster;
    letter-spacing: 1px;
}

.site-logo a {text-decoration: none; color: white;}

.site-logo span { color: #00b894; /* Explore green */ }

.header-links a {
    color: #dfe6e9;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header-links a:hover { color: #00b894; }


/* Footer Styles */
.site-footer a { color: var(--primary); text-decoration: none; color: #64748b;}

/* welcome section */
.welcome-hero {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.welcome-hero h1 {
    font-size: 2.0rem;
    font-family: Roboto;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    background: #f8fafc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.feature-text strong {
    display: block;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-text span {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* title new icon */
.main-title {
    font-size: 2.5rem;
    color: #1e293b;
    display: inline-block;
}

.explore-container {
    position: relative; /* This allows the star to anchor to this word */
    display: inline-block;
}

.star-icon {
    position: absolute;
    top: -10px;        /* Moves it above the text */
    right: -20px;      /* Moves it to the right of the text */
    font-size: 14px;   /* Smaller than the title */
    color: #f59e0b;    /* Gold/Yellow color */
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6); /* Subtle glow */
    animation: pulse 2s infinite; /* Makes it grab attention gently */
}

/* Optional: a gentle pulse to show it's "New" */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}