﻿/* css/analyzer.css */

.analyzer-container {
    max-width: 900px;
}

.analyzer-form-wrapper .input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.analyzer-form-wrapper input[type="text"] {
    flex-grow: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--light-text);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.analyzer-form-wrapper input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.3);
}

.analyzer-form-wrapper .form-text {
    font-size: 0.85rem;
    color: var(--muted-text, #888);
    text-align: center;
    padding: 0 1rem;
}

#loading-indicator {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#error-container {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color, #dc3545);
    color: #f0b0b6;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

#analyzed-url {
    color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media(min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.result-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-card h3 {
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.score-badge {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    color: white;
}
.score-badge.good { background-color: #28a745; }
.score-badge.ok { background-color: #fd7e14; }
.score-badge.bad { background-color: #dc3545; }

.card-summary {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}
.details-list li:first-child {
    border-top: none;
}

.details-list .fas {
    font-size: 1.1rem;
}
.details-list .good { color: #28a745; }
.details-list .bad { color: #dc3545; }

.results-footer {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}
.results-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.results-footer p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ÚJ: RESZPONZÍV KIEGÉSZÍTÉS AZ ANALYZER OLDALHOZ */

/* --- MOBIL NÉZET (kisebb, mint 767px) --- */
@media (max-width: 767px) {
    .analyzer-form-wrapper .input-group {
        flex-direction: column;
    }

    .analyzer-form-wrapper #analyze-btn { /* JAVÍTVA: ID-ra hivatkozva */
        width: 100%;
        text-align: center;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }

    .result-card {
        padding: 1.25rem;
    }

    .results-footer {
        padding: 2rem 1.5rem;
    }

    .results-footer h3 {
        font-size: 1.5rem;
    }
}

/* --- TABLET NÉZET (768px-től 991px-ig) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Az utolsó kártya (SEO) középre kerül, ha páratlan számú */
    .results-grid .result-card:last-child:nth-child(odd) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}