/* style.css - extracted from index.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fef7ed 0%, #fdf4e7 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #1e293b;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}
.header {
    text-align: center;
    margin-bottom: 40px;
}
.logo-img {
    display: block;
    margin: 0 auto 8px auto;
    max-width: 420px;
    width: 80vw;
    height: auto;
    margin-top: 30px;
    opacity: 0;
    transform: scale(0.3);
}
.header p {
    color: #475569;
    font-size: 1.2rem;
    margin-top: 0px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.search-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-left: auto;
    margin-right: auto;
    width: 90vw;
    max-width: 600px;
    min-width: 320px;
    min-height: 260px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
}
.search-box {
    position: relative;
    margin-bottom: 20px;
}
.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: #ffffff;
    color: #1e293b;
}
.search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}
.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-50%) scale(1.1);
}
.places-list {
    display: none;
    animation: slideDown 0.4s ease-out;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.places-list.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.place-item {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}
.place-item:hover {
    background: #fff7ed;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}
.place-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}
.place-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}
.stars {
    color: #f59e0b;
}
.reviews-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    display: none;
    animation: fadeInUp 0.8s ease-out;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reviews-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.selected-place {
    flex: 1;
}
.selected-place h2 {
    color: #1e293b;
    margin-bottom: 5px;
}
.filter-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: #f97316;
    color: #1e293b;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-color: #f97316;
}
.reviews-grid {
    display: grid;
    gap: 20px;
}
.review-card {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    background: #ffffff;
    transition: box-shadow 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}
.reviewer-details h4 {
    margin-bottom: 2px;
}
.review-rating {
    display: flex;
    gap: 8px;
    align-items: center;
}

.photo-indicator {
    font-size: 1.1rem;
    opacity: 0.8;
    cursor: help;
}
.review-text {
    margin: 15px 0;
    line-height: 1.6;
    color: #475569;
}
.review-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: space-between;
    align-items: center;
}

.classification-indicator {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.classification-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    cursor: help;
    position: relative;
}

/* Custom tooltip implementation */
.classification-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
    /* Ensure tooltip stays within viewport */
    max-width: 300px;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
}

.classification-badge[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: -5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

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

.classification-badge.local {
    background: #f0fdf4;
    color: #15803d;
    border-color: #22c55e;
}

.classification-badge.ml {
    background: #fff7ed;
    color: #c2410c;
    border-color: #f97316;
}

.category-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}
.category-advertisements {
    background: #fef2f2;
    color: #dc2626;
}
.category-spam {
    background: #fdf2f8;
    color: #be185d;
}
.category-irrelevant-content {
    background: #f3f4f6;
    color: #6b7280;
}
.category-rant-without-visit {
    background: #fef3c7;
    color: #d97706;
}
.category-useful {
    background: #f0fdf4;
    color: #15803d;
}
.classification-indicator {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}
.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #f97316;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoScaleIn {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    60% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* New animations for How it Works page */
@keyframes slideInFromTop {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInFromBottom {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

@keyframes slideInFromRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInScale {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #dc2626;
}
.tab-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    gap: 10px;
}
.tab-btn {
    padding: 8px 28px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #f97316;
}
.test-section {
    display: none;
    min-height: 180px;
    padding: 0 0 0 0;
    background: none;
    box-shadow: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}
.test-section.show {
    display: block;
}
.test-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
}
.test-btn {
    padding: 10px 30px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.test-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-1px);
}
.test-btn.disabled {
    background: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}
.test-btn.disabled:hover {
    transform: none;
}
.test-result {
    margin-top: 10px;
    font-size: 1.1rem;
    text-align: left;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    background: #f8fafc;
    color: #1e293b;
    min-height: 60px;
}
.star-rating {
    font-size: 2rem;
    color: #f59e0b;
    user-select: none;
    margin-bottom: 10px;
    text-align: center;
    font-family: inherit;
    letter-spacing: 2px;
}
.star {
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
    display: inline-block;
    color: #e2e8f0;
}
.star.selected {
    color: #f59e0b;
}
.star.hovered {
    color: #f59e0b;
}
.navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0 12px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-link.active, .nav-link:hover {
    background: #fff7ed;
    color: #ea580c;
}
.how-it-works-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 40px 32px;
}
.how-it-works-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #fed7aa;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideInFromTop 0.8s ease-out 0.2s forwards;
}
.how-it-works-logo {
    max-width: 300px;
    width: 60%;
    height: auto;
    margin-bottom: 20px;
}
.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}
.workflow-section, .categories-section, .engine-section, .model-section {
    margin: 50px 0;
    padding: 30px 0;
    opacity: 0;
    transform: translateY(40px);
}

.workflow-section {
    animation: slideInFromBottom 0.8s ease-out 0.4s forwards;
}

.categories-section {
    animation: slideInFromBottom 0.8s ease-out 0.6s forwards;
}

.engine-section {
    animation: slideInFromBottom 0.8s ease-out 0.8s forwards;
}

.model-section {
    animation: slideInFromBottom 0.8s ease-out 1.0s forwards;
}
.workflow-section h2, .categories-section h2, .engine-section h2, .model-section h2 {
    color: #ea580c;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    vertical-align: middle;
}
.workflow-steps {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}
.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fff7ed;
    border-radius: 15px;
    border-left: 4px solid #f97316;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.workflow-step:nth-child(1) { animation-delay: 0.6s; }
.workflow-step:nth-child(2) { animation-delay: 0.8s; }
.workflow-step:nth-child(3) { animation-delay: 1.0s; }
.workflow-step:nth-child(4) { animation-delay: 1.2s; }
.workflow-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}
.step-number {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-content h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.step-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.category-card {
    padding: 25px;
    border-radius: 15px;
    border: 2px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInFromBottom 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0.8s; }
.category-card:nth-child(2) { animation-delay: 1.0s; }
.category-card:nth-child(3) { animation-delay: 1.2s; }
.category-card:nth-child(4) { animation-delay: 1.4s; }
.category-card:nth-child(5) { animation-delay: 1.6s; }
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.category-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.category-card.category-advertisements {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.category-card.category-spam {
    background: #fdf2f8;
    border-color: #f9a8d4;
    color: #be185d;
}
.category-card.category-rant-without-visit {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #d97706;
}
.category-card.category-irrelevant-content {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}
.category-card.category-useful {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}
.stage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.stage-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #fed7aa;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.stage-card:nth-child(1) { animation-delay: 1.0s; }
.stage-card:nth-child(2) { 
    transform: translateX(30px);
    animation: slideInFromRight 0.6s ease-out 1.2s forwards;
}
.stage-card h3 {
    color: #ea580c;
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.stage-card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}
.stage-details h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.stage-details ul {
    color: #475569;
    line-height: 1.5;
}
.stage-details li {
    margin-bottom: 8px;
}
.training-info, .challenge-solution {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #f97316;
}
.training-info h3, .challenge-solution h3 {
    color: #ea580c;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.code-example {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    overflow-x: auto;
}
.performance-metrics {
    text-align: center;
    margin-top: 40px;
}
.performance-metrics h3 {
    color: #ea580c;
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.metric-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid #fed7aa;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: slideInScale 0.6s ease-out forwards;
}

.metric-card:nth-child(1) { animation-delay: 1.2s; }
.metric-card:nth-child(2) { animation-delay: 1.4s; }
.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.2);
}
.metric-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ea580c;
    margin-bottom: 10px;
}
.metric-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.metric-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}
.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 20px;
    border: 2px solid #fed7aa;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFromBottom 0.8s ease-out 1.2s forwards;
}
.cta-section h2 {
    color: #ea580c;
    font-size: 2rem;
    margin-bottom: 15px;
}
.cta-section p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.cta-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

/* Responsive Design for How It Works */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .header h1 {
        font-size: 2rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-section {
        width: 100%;
        justify-content: flex-start;
    }
    .search-section {
        min-height: 0;
    }
    .how-it-works-container {
        padding: 20px;
    }
    
    .how-it-works-logo {
        max-width: 250px;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stage-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 2.5rem;
    }
}

/* Loading state improvements */
.logo-img {
    transition: opacity 0.3s ease-out;
}

.logo-img:not([src]), .logo-img[src=""] {
    opacity: 0;
}

/* Fallback for when animations don't load */
.no-animations .search-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.no-animations .logo-img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure logo is visible after animation completes or if animation fails */
.logo-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Additional safety for slow-loading images */
.logo-img {
    /* Prevent flash of unstyled content */
    background: transparent;
}

/* Photo indicator tooltip styles */
.photo-indicator[data-tooltip] {
    cursor: help;
    position: relative;
}

.photo-indicator[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
    max-width: 300px;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
}

.photo-indicator[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: -5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}
