/**
 * Tech Stack SEO Section Styles
 * Unique namespace: tech-stack-*
 * Theme: Blue/Tech colors
 */

/* Container */
.tech-stack-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header */
.tech-stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.tech-stack-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-stack-title i {
    font-size: 28px;
    color: #0d6efd;
}

.tech-stack-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.tech-stack-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-stack-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-stack-grade-a {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.tech-stack-grade-b {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

.tech-stack-grade-c {
    background: linear-gradient(135deg, #ffc107, #ffb84d);
    color: #212529;
}

.tech-stack-grade-d {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

.tech-stack-grade-f {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.tech-stack-grade-info {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

.tech-stack-score-value {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
}

/* Section */
.tech-stack-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.tech-stack-section:last-child {
    margin-bottom: 0;
}

.tech-stack-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tech-stack-section-header i {
    font-size: 20px;
    color: #0d6efd;
}

.tech-stack-section-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    flex: 1;
}

.tech-stack-count-badge {
    background: #0d6efd;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Empty State */
.tech-stack-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
}

.tech-stack-empty i {
    font-size: 18px;
}

/* Error State */
.tech-stack-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
    color: #dc3545;
}

.tech-stack-error i {
    font-size: 48px;
}

.tech-stack-error p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
}

/* Technologies Grid */
.tech-stack-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tech-stack-tech-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.tech-stack-tech-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.tech-stack-tech-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-stack-tech-item i {
    color: #28a745;
    font-size: 16px;
    flex-shrink: 0;
}

.tech-stack-tech-name {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    flex: 1;
}

.tech-stack-tech-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 24px;
}

.tech-stack-version {
    display: inline-block;
    padding: 2px 8px;
    background: #e7f3ff;
    color: #0d6efd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tech-stack-confidence {
    display: inline-block;
    padding: 2px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tech-stack-category {
    display: inline-block;
    padding: 2px 8px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Info Grid */
.tech-stack-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.tech-stack-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.tech-stack-info-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-stack-info-item > i {
    font-size: 24px;
    color: #6c757d;
}

.tech-stack-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tech-stack-info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tech-stack-info-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
    word-break: break-word;
}

/* Status Colors */
.tech-stack-status-success {
    border-left: 3px solid #28a745;
}

.tech-stack-status-success > i {
    color: #28a745 !important;
}

.tech-stack-status-warning {
    border-left: 3px solid #ffc107;
}

.tech-stack-status-warning > i {
    color: #ffc107 !important;
}

.tech-stack-status-error {
    border-left: 3px solid #dc3545;
}

.tech-stack-status-error > i {
    color: #dc3545 !important;
}

/* DNS Servers List */
.tech-stack-dns-servers-list {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.tech-stack-dns-server {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #495057;
}

.tech-stack-dns-server i {
    color: #0d6efd;
}

/* DNS Records */
.tech-stack-dns-records {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-stack-dns-record-group {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #dee2e6;
}

.tech-stack-dns-record-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.tech-stack-dns-record-header i {
    color: #0d6efd;
}

.tech-stack-record-count {
    margin-left: auto;
    background: #e7f3ff;
    color: #0d6efd;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tech-stack-dns-record-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-stack-dns-record-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.tech-stack-dns-record-more {
    padding: 6px 12px;
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

/* Email Security */
.tech-stack-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.tech-stack-security-item {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #dee2e6;
}

.tech-stack-security-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tech-stack-security-header i {
    font-size: 24px;
}

.tech-stack-security-label {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.tech-stack-security-status {
    margin-bottom: 8px;
}

.tech-stack-status-text-success {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.tech-stack-status-text-error {
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
}

.tech-stack-security-error {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
}

.tech-stack-security-error small {
    color: #856404;
    font-size: 12px;
    line-height: 1.4;
}

.tech-stack-security-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.tech-stack-security-detail {
    margin-bottom: 8px;
    font-size: 13px;
    color: #495057;
}

.tech-stack-security-detail strong {
    color: #212529;
    margin-right: 4px;
}

.tech-stack-security-record {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow-x: auto;
}

.tech-stack-security-record code {
    font-size: 11px;
    color: #495057;
    word-break: break-all;
    white-space: pre-wrap;
}

.tech-stack-mechanisms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tech-stack-mechanism {
    display: inline-block;
    padding: 3px 8px;
    background: #e7f3ff;
    color: #0d6efd;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.tech-stack-mechanism-more {
    display: inline-block;
    padding: 3px 8px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 4px;
    font-size: 11px;
    font-style: italic;
}

/* Recommendations */
.tech-stack-recommendations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-stack-rec-group {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border-left: 4px solid;
}

.tech-stack-rec-critical {
    border-left-color: #dc3545;
}

.tech-stack-rec-high {
    border-left-color: #fd7e14;
}

.tech-stack-rec-medium {
    border-left-color: #ffc107;
}

.tech-stack-rec-low {
    border-left-color: #17a2b8;
}

.tech-stack-rec-info {
    border-left-color: #6c757d;
}

.tech-stack-rec-priority {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-stack-rec-critical .tech-stack-rec-priority {
    color: #dc3545;
}

.tech-stack-rec-high .tech-stack-rec-priority {
    color: #fd7e14;
}

.tech-stack-rec-medium .tech-stack-rec-priority {
    color: #ffc107;
}

.tech-stack-rec-low .tech-stack-rec-priority {
    color: #17a2b8;
}

.tech-stack-rec-info .tech-stack-rec-priority {
    color: #6c757d;
}

.tech-stack-rec-priority i {
    font-size: 16px;
}

.tech-stack-rec-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-stack-rec-item {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-stack-container {
        padding: 16px;
    }

    .tech-stack-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tech-stack-title h3 {
        font-size: 20px;
    }

    .tech-stack-tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack-info-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack-security-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tech-stack-title i {
        font-size: 24px;
    }

    .tech-stack-title h3 {
        font-size: 18px;
    }

    .tech-stack-section {
        padding: 16px;
    }

    .tech-stack-badge {
        font-size: 14px;
        padding: 4px 12px;
    }

    .tech-stack-score-value {
        font-size: 18px;
    }
}
