/* Dark Web Breach Checker — Styles */
/* Matches altern8.fr: Nunito body, Comfortaa h2, #e43117 primary, #182140 text */

.dwbc-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    color: #182140;
    line-height: 1.6;
}

/* Header */
.dwbc-header {
    text-align: center;
    margin-bottom: 35px;
}

.dwbc-icon-shield {
    margin-bottom: 15px;
}

.dwbc-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #182140;
    margin: 0 0 10px;
}

.dwbc-subtitle {
    font-size: 16px;
    color: #5a6577;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs */
.dwbc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 50px;
    background: #f0f2f5;
    padding: 4px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.dwbc-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #5a6577;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dwbc-tab:hover {
    color: #182140;
}

.dwbc-tab.active {
    background: #fff;
    color: #e43117;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dwbc-tab svg {
    flex-shrink: 0;
}

/* Form */
.dwbc-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(24, 33, 64, 0.08);
    margin-bottom: 24px;
}

.dwbc-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.dwbc-input-group input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e4ea;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #182140;
    outline: none;
    transition: border-color 0.25s;
    background: #f7f7f7;
}

.dwbc-input-group input[type="text"]:focus {
    border-color: #e43117;
    background: #fff;
}

.dwbc-input-group input[type="text"]::placeholder {
    color: #a0a8b8;
}

.dwbc-input-group button {
    padding: 14px 32px;
    background: #e43117;
    color: #fff;
    border: 2px solid #e43117;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dwbc-input-group button:hover {
    background: #c92a12;
    border-color: #c92a12;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 49, 23, 0.3);
}

.dwbc-input-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dwbc-hint {
    font-size: 12px;
    color: #8c94a6;
    margin: 12px 0 0;
    text-align: center;
}

/* Results */
.dwbc-results {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(24, 33, 64, 0.08);
    margin-bottom: 24px;
    animation: dwbc-fadeIn 0.4s ease;
}

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

/* Result status banner */
.dwbc-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.dwbc-status-safe {
    background: linear-gradient(135deg, #eafaf1 0%, #d5f5e3 100%);
    border: 1px solid #a9dfbf;
}

.dwbc-status-exposed {
    background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);
    border: 1px solid #f5b7b1;
}

.dwbc-status-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dwbc-status-safe .dwbc-status-icon {
    background: #27ae60;
}

.dwbc-status-exposed .dwbc-status-icon {
    background: #e43117;
}

.dwbc-status h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
    font-weight: 700;
}

.dwbc-status-safe h3 { color: #1e8449; }
.dwbc-status-exposed h3 { color: #c0392b; }

.dwbc-status p {
    margin: 0;
    font-size: 14px;
    color: #5a6577;
}

/* Risk meter */
.dwbc-risk-meter {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
}

.dwbc-risk-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.dwbc-risk-bar {
    height: 8px;
    background: #e0e4ea;
    border-radius: 4px;
    overflow: hidden;
}

.dwbc-risk-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.dwbc-risk-safe .dwbc-risk-fill { width: 5%; background: #27ae60; }
.dwbc-risk-low .dwbc-risk-fill { width: 25%; background: #f39c12; }
.dwbc-risk-medium .dwbc-risk-fill { width: 50%; background: #e67e22; }
.dwbc-risk-high .dwbc-risk-fill { width: 75%; background: #e74c3c; }
.dwbc-risk-critical .dwbc-risk-fill { width: 100%; background: #c0392b; }

.dwbc-risk-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dwbc-risk-safe .dwbc-risk-badge { background: #d5f5e3; color: #1e8449; }
.dwbc-risk-low .dwbc-risk-badge { background: #fef5e7; color: #b7950b; }
.dwbc-risk-medium .dwbc-risk-badge { background: #fdebd0; color: #af601a; }
.dwbc-risk-high .dwbc-risk-badge { background: #fadbd8; color: #c0392b; }
.dwbc-risk-critical .dwbc-risk-badge { background: #e6b0aa; color: #7b241c; }

/* Summary stats */
.dwbc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dwbc-stat {
    text-align: center;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 12px;
}

.dwbc-stat-number {
    font-family: 'Comfortaa', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #e43117;
    display: block;
}

.dwbc-stat-label {
    font-size: 12px;
    color: #8c94a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Breach list */
.dwbc-breaches-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: #182140;
}

.dwbc-breach-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border-left: 4px solid #e43117;
    transition: transform 0.2s;
}

.dwbc-breach-card:hover {
    transform: translateX(4px);
}

.dwbc-breach-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.dwbc-breach-name {
    font-weight: 800;
    font-size: 16px;
    color: #182140;
}

.dwbc-breach-date {
    font-size: 13px;
    color: #8c94a6;
    background: #e0e4ea;
    padding: 2px 10px;
    border-radius: 50px;
}

.dwbc-breach-records {
    font-size: 13px;
    color: #5a6577;
    margin-bottom: 8px;
}

.dwbc-breach-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dwbc-breach-type-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fdebd0;
    color: #af601a;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dwbc-breach-type-tag.dwbc-tag-password {
    background: #fadbd8;
    color: #c0392b;
}

.dwbc-breach-type-tag.dwbc-tag-financial {
    background: #e6b0aa;
    color: #7b241c;
}

.dwbc-breach-desc {
    font-size: 13px;
    color: #5a6577;
    margin-top: 8px;
    line-height: 1.5;
}

.dwbc-show-more {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed #e0e4ea;
    border-radius: 12px;
    color: #5a6577;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.25s;
}

.dwbc-show-more:hover {
    border-color: #e43117;
    color: #e43117;
}

/* Recommendations */
.dwbc-recommendations {
    background: #edf5fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.dwbc-recommendations h4 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    margin: 0 0 12px;
    color: #182140;
}

.dwbc-recommendations ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dwbc-recommendations li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: #3a4255;
}

.dwbc-recommendations li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: #e43117;
    border-radius: 50%;
    opacity: 0.2;
}

.dwbc-recommendations li::after {
    content: '\2713';
    position: absolute;
    left: 3px;
    top: 11px;
    font-size: 11px;
    color: #e43117;
    font-weight: bold;
}

/* Recontact form */
.dwbc-recontact {
    animation: dwbc-fadeIn 0.4s ease;
}

.dwbc-recontact-inner {
    background: linear-gradient(135deg, #182140 0%, #2c3e6b 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}

.dwbc-recontact-inner h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 22px;
    margin: 0 0 8px;
    color: #fff;
}

.dwbc-recontact-inner p {
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px;
    font-size: 14px;
}

.dwbc-recontact-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dwbc-recontact-fields input {
    flex: 1;
    min-width: 150px;
    padding: 12px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s;
}

.dwbc-recontact-fields input::placeholder {
    color: rgba(255,255,255,0.5);
}

.dwbc-recontact-fields input:focus {
    border-color: #e43117;
    background: rgba(255,255,255,0.15);
}

.dwbc-btn-recontact {
    padding: 14px 36px;
    background: #e43117;
    color: #fff;
    border: 2px solid #e43117;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
}

.dwbc-btn-recontact:hover {
    background: #c92a12;
    border-color: #c92a12;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(228, 49, 23, 0.4);
}

.dwbc-recontact-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
}

/* Error */
.dwbc-error {
    background: #fdf2f2;
    border: 1px solid #f5b7b1;
    border-radius: 12px;
    padding: 16px 20px;
    color: #c0392b;
    font-size: 14px;
    text-align: center;
}

/* FAQ */
.dwbc-faq {
    margin-top: 40px;
}

.dwbc-faq-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 22px;
    color: #182140;
    margin: 0 0 20px;
    text-align: center;
}

.dwbc-faq-item {
    border-bottom: 1px solid #e0e4ea;
}

.dwbc-faq-item:first-of-type {
    border-top: 1px solid #e0e4ea;
}

.dwbc-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    border: none;
    background: transparent;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #182140;
    cursor: pointer;
    transition: color 0.25s;
}

.dwbc-faq-question:hover {
    color: #e43117;
}

.dwbc-faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dwbc-faq-question[aria-expanded="true"] .dwbc-faq-chevron {
    transform: rotate(180deg);
}

.dwbc-faq-answer {
    padding: 0 0 18px;
    overflow: hidden;
}

.dwbc-faq-answer p {
    margin: 0;
    font-size: 14px;
    color: #5a6577;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 640px) {
    .dwbc-input-group {
        flex-direction: column;
    }

    .dwbc-input-group button {
        justify-content: center;
    }

    .dwbc-title {
        font-size: 22px;
    }

    .dwbc-form-wrapper {
        padding: 20px;
    }

    .dwbc-results {
        padding: 20px;
    }

    .dwbc-recontact-fields {
        flex-direction: column;
    }

    .dwbc-breach-header {
        flex-direction: column;
    }

    .dwbc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
