/* SSL Checker Interface */
.ssl-checker-interface {
    margin-bottom: 2rem;
}

.checker-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.domain-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
}

.domain-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.domain-input::placeholder {
    color: #9ca3af;
}

.check-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.check-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.check-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    display: none;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 13px;
    color: #6b7280;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
}

.spinner-container {
    display: inline-block;
    margin-bottom: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* Results Container */
.results-container {
    animation: fadeIn 0.3s ease;
}

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

/* Certificate Status Card */
.certificate-status-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.status-indicator {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
}

.status-indicator.status-valid {
    background: #10b981;
}

.status-indicator.status-warning {
    background: #f59e0b;
}

.status-indicator.status-error {
    background: #ef4444;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.status-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Certificate Details Grid */
.certificate-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
}

.detail-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    word-break: break-word;
}

/* Security Analysis Section */
.security-analysis-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s ease;
}

.analysis-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analysis-content {
    flex: 1;
}

.analysis-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.analysis-details {
    font-size: 13px;
    color: #6b7280;
}

.analysis-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.analysis-badge.pass {
    background: #d1fae5;
    color: #065f46;
}

.analysis-badge.warn {
    background: #fef3c7;
    color: #92400e;
}

.analysis-badge.fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Recommendations Section */
.recommendations-section {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1.5rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
}

.recommendation-item::before {
    content: "→";
    flex-shrink: 0;
    font-weight: 700;
    color: #f59e0b;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    font-size: 16px;
    color: #991b1b;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .checker-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .domain-input {
        width: 100%;
    }

    .check-button {
        width: 100%;
        justify-content: center;
    }

    .button-icon {
        display: block;
    }

    .button-text {
        display: none;
    }

    .certificate-details-grid {
        grid-template-columns: 1fr;
    }

    .status-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .status-indicator {
        width: 56px;
        height: 56px;
    }

    .analysis-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .analysis-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .checker-card {
        padding: 1rem;
    }

    .certificate-status-card {
        padding: 1rem;
    }

    .detail-card {
        padding: 1rem;
    }

    .section-title {
        font-size: 16px;
    }
}
