/* Rhino Rank DA/DR Checker Frontend Styles */

/* Critical styles with !important to ensure they work with optimizers */
.rrdc-checker-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.rrdc-checker-header {
    text-align: center;
    margin-bottom: 40px;
}

.rrdc-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.rrdc-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Form Section */
.rrdc-checker-form {
    margin-bottom: 40px;
}

.rrdc-form {
    width: 100%;
}

.rrdc-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.rrdc-domain-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.rrdc-domain-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rrdc-submit-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 150px;
}

.rrdc-submit-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.rrdc-submit-button:active {
    transform: translateY(0);
}

.rrdc-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.rrdc-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.rrdc-spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.rrdc-spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Error Message */
.rrdc-error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #fee;
    border-radius: 6px;
    border: 1px solid #fcc;
}

/* Results Section */
.rrdc-results-container {
    animation: fadeIn 0.5s ease;
}

.rrdc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rrdc-metric-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.rrdc-metric-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.rrdc-metric-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rrdc-metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
}

.rrdc-dr-card .rrdc-metric-value {
    color: #2563eb;
}

.rrdc-metric-provider {
    font-size: 12px;
    color: #9ca3af;
}

/* Additional Info */
.rrdc-additional-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.rrdc-domain-checked {
    margin-bottom: 5px;
}

.rrdc-domain-checked span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Promo Section */
.rrdc-promo-section {
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    animation: fadeIn 0.8s ease;
}

.rrdc-promo-header {
    text-align: center;
    margin-bottom: 40px;
}

.rrdc-promo-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.rrdc-promo-header p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.rrdc-promo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rrdc-feature {
    display: flex;
    gap: 15px;
}

.rrdc-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.rrdc-feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.rrdc-feature-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.rrdc-promo-cta {
    text-align: center;
}

.rrdc-cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rrdc-cta-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .rrdc-title {
        font-size: 28px;
    }
    
    .rrdc-subtitle {
        font-size: 16px;
    }
    
    .rrdc-input-group {
        flex-direction: column;
    }
    
    .rrdc-submit-button {
        width: 100%;
    }
    
    .rrdc-promo-section {
        padding: 30px 20px;
    }
    
    .rrdc-promo-header h3 {
        font-size: 24px;
    }
    
    .rrdc-metric-value {
        font-size: 36px;
    }
}