/* Card-based detail view */
.detail-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.card-badge {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
}

.card-badge.general {
    background: #6c757d;
}

.card-badge.website {
    background: #007bff;
}

.card-badge.shop {
    background: #28a745;
}

.card-badge.analysis {
    background: #17a2b8;
}

.card-content {
    padding: 20px;
}

.card-section {
    margin-bottom: 24px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section-title {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
}

.card-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.card-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-detail-label {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-detail-value {
    color: #333;
    word-break: break-word;
}

.card-detail-value a {
    color: #007bff;
    text-decoration: none;
}

.card-detail-value a:hover {
    text-decoration: underline;
}

.tech-card-content {
    padding: 0;
}

.seo-summary {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-summary h4 {
    margin: 0;
    color: #333;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 20px;
}

.no-data-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 16px 20px;
    text-align: center;
    font-style: italic;
}

/* Social Media */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #6c757d;
    transition: fill 0.2s ease;
}

.social-link-item:hover .social-icon svg {
    fill: #007bff;
}

/* Scan Actions Grid */
.scan-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.scan-actions-grid .action-btn {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.scan-actions-grid .action-btn:hover:not(:disabled) {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.scan-actions-grid .social-btn:hover:not(:disabled) {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.scan-actions-grid .ai-shop-btn:hover:not(:disabled) {
    border-color: #6f42c1;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.scan-actions-grid .tech-btn:hover:not(:disabled) {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.scan-actions-grid .full-scan-btn:hover:not(:disabled) {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #c3e6cb 100%);
}

.scan-actions-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.scan-actions-description p {
    margin: 8px 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.scan-actions-description strong {
    color: #495057;
    font-weight: 600;
}



.no-data-message,
.error-message {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 16px;
}

