/* ======================================================
   TECHNOLOGY DETECTOR 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;
}

.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;
}

/* Main Info Card */
.info-card-main {
    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);
}

.site-icon {
    width: 100px;
    height: 100px;
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-card-main h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.site-url {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Technology Categories */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2rem;
}

.tech-category h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: #f9fafb;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.tech-name {
    font-weight: 700;
    color: #f9fafb;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.tech-version {
    font-size: 0.85rem;
    color: #9ca3af;
}

.tech-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Empty State */
.tech-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 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%;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .site-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}
