/* ======================================================
   SECURITY CHECKER TOOL STYLES
   ====================================================== */

/* Tool Hero */
.tool-hero {
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
        url('/images/mtc-web-design.webp') center/cover no-repeat;
    height: 60vh;
    min-height: 400px;
    margin-top: 90px; /* Account for fixed navbar */
}

.tool-hero .hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Section */
.tool-section {
    padding: 80px 0;
    background: #111827;
    min-height: 50vh;
}

/* Input Wrapper */
.tool-input-wrapper {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.tool-input-wrapper h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #f9fafb;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #f9fafb;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.url-input::placeholder {
    color: #6b7280;
}

.input-group .cta-btn {
    padding: 1.2rem 2.5rem;
    white-space: nowrap;
}

.help-text {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #d1d5db;
    font-size: 1.1rem;
}

/* Results Wrapper */
.results-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.score-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 8px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.score-value {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
}

.score-text {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

/* Result Cards */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.result-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 1.5rem;
    color: #f9fafb;
}

.status-content {
    color: #d1d5db;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 600;
    color: #f9fafb;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pass {
    background: #10b981;
    color: #fff;
}

.status-badge.fail {
    background: #ef4444;
    color: #fff;
}

.status-badge.warning {
    background: #f59e0b;
    color: #fff;
}

/* Recommendations */
.recommendations-content {
    color: #d1d5db;
}

.recommendation-item {
    padding: 1.2rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.recommendation-item h4 {
    color: #ef4444;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.recommendation-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Results CTA */
.results-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 20px;
    margin-top: 3rem;
}

.results-cta h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: #f9fafb;
}

.results-cta p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
}

.error-message {
    color: #ef4444;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
}

/* Info Section */
.info-section {
    padding: 100px 0;
    background: #0a0a0a;
    text-align: center;
}

.info-section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 4rem;
    color: #f9fafb;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.info-card p {
    color: #d1d5db;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .input-group .cta-btn {
        width: 100%;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 3rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .status-item {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}
