/* Domain Authority Checker Tool Styles */

/* Loading Animation */
.btn-loader svg {
    width: 20px;
    height: 20px;
}

/* Score Animation */
@keyframes scoreCount {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.domain-authority-score,
.page-authority-score,
.trust-score,
.spam-score {
    animation: scoreCount 0.8s ease-out;
}

/* Progress Bar Animation */
.da-progress,
.pa-progress,
.trust-progress,
.spam-progress {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab Styles */
.analysis-tab {
    transition: all 0.2s ease;
    position: relative;
}

.analysis-tab.active {
    color: #2563eb;
    border-color: #2563eb;
}

.analysis-tab:hover:not(.active) {
    color: #374151;
    border-color: #d1d5db;
}

/* Tab Content Animation */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Check Buttons */
.quick-check-btn {
    transition: all 0.2s ease;
}

.quick-check-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Domain Input Focus Effect */
#domainInput:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Check Button Animation */
#checkDomainBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#checkDomainBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

#checkDomainBtn:active {
    transform: translateY(0);
}

/* Results Card Animation */
#resultsSection {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Card Hover Effects */
.bg-white:hover {
    transition: all 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Authority Score Color Coding */
.da-score-low {
    color: #dc2626;
}
.da-score-medium {
    color: #f59e0b;
}
.da-score-high {
    color: #059669;
}
.da-score-excellent {
    color: #2563eb;
}

/* Progress Bar Color Coding */
.progress-low {
    background: linear-gradient(to right, #dc2626, #ef4444);
}
.progress-medium {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
}
.progress-high {
    background: linear-gradient(to right, #059669, #10b981);
}
.progress-excellent {
    background: linear-gradient(to right, #2563eb, #3b82f6);
}

/* Backlink Cards */
.backlink-card {
    transition: all 0.2s ease;
    border-left: 4px solid #e5e7eb;
}

.backlink-card:hover {
    border-left-color: #3b82f6;
    background-color: #f8fafc;
}

/* Recommendation Cards */
.recommendation-card {
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s ease;
}

.recommendation-card.critical {
    border-left-color: #dc2626;
    background: linear-gradient(to right, #fef2f2, #ffffff);
}

.recommendation-card.important {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb, #ffffff);
}

.recommendation-card.good {
    border-left-color: #059669;
    background: linear-gradient(to right, #ecfdf5, #ffffff);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .authority-scores {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .domain-authority-score,
    .page-authority-score,
    .trust-score,
    .spam-score {
        font-size: 2rem;
    }

    .analysis-tab {
        font-size: 0.875rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Export Button Hover */
#exportReportBtn,
#shareResultsBtn {
    transition: all 0.2s ease;
}

#exportReportBtn:hover,
#shareResultsBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Technical Analysis Cards */
.tech-analysis-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.tech-analysis-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tech-status-good {
    color: #059669;
    background-color: #d1fae5;
    border-color: #a7f3d0;
}

.tech-status-warning {
    color: #f59e0b;
    background-color: #fef3c7;
    border-color: #fde68a;
}

.tech-status-error {
    color: #dc2626;
    background-color: #fecaca;
    border-color: #fca5a5;
}

/* Competitor Cards */
.competitor-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.competitor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

/* DNS Information Styling */
.dns-record {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-family: "Courier New", monospace;
    font-size: 0.875rem;
}

/* SSL Status Indicators */
.ssl-valid {
    color: #059669;
    background-color: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ssl-invalid {
    color: #dc2626;
    background-color: #fecaca;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Domain Info Header Animation */
#domainInfoCard {
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Color Classes */
.score-excellent {
    color: #059669;
}
.score-good {
    color: #65a30d;
}
.score-average {
    color: #f59e0b;
}
.score-poor {
    color: #dc2626;
}

/* Pulse Animation for Loading */
.pulse-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Custom Scrollbar for Analysis Tabs */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
