* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 2rem;
}

.logo-img{
    height: 4rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: -0.25rem;
}

.description {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 32rem;
    margin: 0 auto;
}

/* Card Styles */
.search-card,
.result-card,
.external-checkers-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.search-card {
    max-width: 42rem;
    margin: 0 auto 2rem auto;
}

.card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #64748b;
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

/* Search Styles */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.domain-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.check-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    position: relative;
}

.check-button:hover:not(:disabled) {
    background: #2563eb;
}

.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

/* Results Styles */
.results-section {
    max-width: 64rem;
    margin: 0 auto;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-safe {
    background: #3b82f6;
    color: white;
}

.badge-danger {
    background: #dc2626;
    color: white;
}

.check-time {
    font-size: 0.875rem;
    color: #64748b;
}

.domain-text {
    font-family: "Courier New", monospace;
    font-weight: 600;
}

.sources-section {
    margin-bottom: 1rem;
}

.sources-section h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.source-badge {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #475569;
}

/* External Checkers */
.checkers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checker-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}

.checker-button:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.checker-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.checker-icon.blue {
    background: #3b82f6;
}

.checker-icon.green {
    background: #10b981;
}

.checker-icon.purple {
    background: #8b5cf6;
}

.checker-icon.red {
    background: #ef4444;
}

.checker-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.checker-info p {
    font-size: 0.875rem;
    color: #64748b;
}

.external-link {
    margin-left: auto;
    color: #64748b;
}

/* Features Section */
.features-section {
    max-width: 64rem;
    margin: 4rem auto 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-icon.blue {
    color: #3b82f6;
}

.feature-icon.green {
    color: #10b981;
}

.feature-icon.purple {
    color: #8b5cf6;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.footer-subtitle {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .check-button {
        justify-content: center;
    }

    .checkers-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #e2e8f0;
    }

    .search-card,
    .result-card,
    .external-checkers-card,
    .feature-card {
        background: #1e293b;
        border: 1px solid #334155;
    }

    .domain-input {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }

    .domain-input:focus {
        border-color: #3b82f6;
    }

    .source-badge {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }

    .checker-button {
        background: #334155;
        border-color: #475569;
    }

    .checker-button:hover {
        border-color: #3b82f6;
    }
}