/* ==========================================================================
   Base Container and Layout
   ========================================================================== */
.ab-breach-container {
    max-width: 1200px;
    width: 80%;
    padding-top: 60px;
    display: flex;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #fff;
    gap: 40px;
    padding: 16px;
    box-sizing: border-box;
}

.ab-breach-container .heroic-alt-redirect-box {
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.ab-breach-main { width: 100%; }

/* ==========================================================================
   Header Section
   ========================================================================== */
.ab-breach-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 16px;
    border-radius: 6px;
    background-size: cover;
    border: 1px solid #e5e7eb;
    /* Dark blue diagonal gradient with soft highlights */
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(59,130,246,0.25), transparent 40%),
        radial-gradient(ellipse at 80% 90%, rgba(99,102,241,0.20), transparent 45%),
        linear-gradient(135deg, #0b1e3b 0%, #0f2a50 50%, #0b1e3b 100%);
    background-repeat: no-repeat;
    background-position: center;
}

.ab-breach-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.ab-breach-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 0.5rem;
}

.ab-breach-header-content {
    flex-grow: 1;
}

.ab-breach-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.ab-breach-meta { display:flex; gap:.5rem; color:#6b7280; font-size:.875rem; flex-wrap:wrap; }

.ab-breach-meta .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    margin-right: 10px;
}

.ab-breach-meta span {
    background-color: #ffffff20;
    border-radius: 100px;
    padding: 3px 5px;
    color: white;
    width: fit-content;
}

/* ==========================================================================
   Statistics Grid
   ========================================================================== */
.ab-breach-stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin: 0 0 1rem; }

.ab-breach-stat-item { text-align:left !important; background:#fff; padding:.75rem; border:1px solid #e5e7eb; border-radius:6px; }

.ab-breach-stat-item:not(:last-of-type) {
    border-right: solid 1px #eee;
}

.ab-breach-stat-value {
    display: block;
    font-size: 14px;
    text-align: left;
    font-weight: 600;
    color: #636363;
}

.ab-breach-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: left;
}

/* ==========================================================================
   Search Section
   ========================================================================== */
.ab-breach-demo-search {
    margin: 2rem 0;
}

#breach-demo-search-form label {
    font-size: 15px;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   Details Section
   ========================================================================== */
.ab-breach-details-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin:0 0 1rem; }

.ab-breach-detail-item { padding:.75rem; background:#f8f9fa; border-radius:6px; border:1px solid #e5e7eb; }

.ab-breach-detail-label {
    display: block;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.ab-breach-detail-value {
    color: #1a1a1a;
}

/* ==========================================================================
   Description Section
   ========================================================================== */
.ab-breach-description { margin: 1.25rem 0; }

/* Notices */
.ab-breach-notices { margin: 1rem 0; display: grid; gap: 8px; }
.ab-notice { padding: 10px 12px; border-radius: 6px; border:1px solid transparent; display:flex; align-items:center; gap:8px; font-size:14px; }
.ab-notice .dashicons { color:#111827; }
.ab-notice-yellow { background:#FFFBEB; border-color:#FDE68A; }
.ab-notice-orange { background:#FFF7ED; border-color:#FDBA74; }
.ab-notice-red { background:#FEF2F2; border-color:#FCA5A5; }

.ab-breach-description-content {
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
    font-family: poppins; 

}

.ab-breach-description-content h3 {
    margin-top: 25px;
    margin-bottom: 20px;
}

.ab-breach-description-content li:not(.breach-pill) {
    border-left: 2px solid grey;
    padding: 2px 5px 2px 20px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.ab-breach-sidebar { max-width:300px; flex-shrink:0; }

.ab-breach-stats {
    background-color: #f8fafc;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 0px 0px transparent !important;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Related Breaches
   ========================================================================== */
.ab-breach-related {
    min-width: 280px;
    display: inline-block;
    width: 100%;
}

.ab-breach-related-grid {
    display: block;
    margin-top: 1rem;
}

.ab-breach-related-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
}

.ab-breach-related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ab-breach-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.ab-breach-related-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ab-breach-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 0.25rem;
}

.ab-breach-related-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.ab-breach-related-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ab-breach-related-title a:hover {
    color: #2563eb;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-previous, .nav-next {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-previous {
    left: 10px;
}

.nav-next {
    right: 10px;
}

/* ==========================================================================
   Breach Pills
   ========================================================================== */
.breach-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.breach-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0.5em 0.5em;
    border-radius: 999px;
    background: #f3f4f6;
    color: #222;
    font-weight: 200 !important;
    font-size: .8em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
    margin-bottom: 0.5em;
}

/* ==========================================================================
   Impact Gauge and Financial Impact
   ========================================================================== */
.impact-gauge-container {
    position: relative;
    width: 100%;
    height: 100px;
    margin: 0.5rem 0;
}

.impact-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    font-weight: 600;
    color: #2271b1;
}

.impact-score-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
}

.financial-impact {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc3232;
    margin: 0.5rem 0;
}

.financial-impact-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Tighter italics helper for estimate text */
.ab-breach-stats em { font-size: 0.85rem; line-height: 1.3; display: inline-block; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* Divi tablet breakpoint and below */
@media (max-width: 980px) {
    .ab-breach-container { flex-direction: column; padding: 12px; }
    .ab-breach-main, .ab-breach-sidebar { max-width: 100%; width: 100%; }
    .ab-breach-header { padding: 12px; margin-bottom: 12px; }
    .ab-breach-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-breach-details-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-breach-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .ab-breach-stats > div { padding: 1rem; }
    .ab-breach-related { width: 100%; max-width: 100%; min-width: unset; display: block; }
    .ab-breach-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .nav-previous, .nav-next { top: unset; bottom: 10px; padding: 0.5rem 1rem; font-size: 0.875rem; }
}

/* Divi phone breakpoint and below */
@media (max-width: 767px) {
    .ab-breach-container { flex-direction:column; padding:12px; }

    .ab-breach-main {
        padding-right: 0;
    }

    .ab-breach-header { flex-direction:column; align-items:flex-start; gap:.75rem; padding:12px; }

    .ab-breach-logo {
        width: 48px;
        height: 48px;
    }

    .ab-breach-title {
        font-size: 1.2rem;
    }

    .ab-breach-stat-grid, .ab-breach-details-grid { grid-template-columns:1fr; }

    .ab-breach-stat-item:not(:last-of-type) {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .ab-breach-stats {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ab-breach-stats > div {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .ab-breach-stats > div:last-child {
        border-bottom: none;
    }

    .ab-breach-stats .impact-gauge-container { height:100px; margin:.5rem 0; }

    .ab-breach-stats .impact-score-value {
        font-size: 1.5rem;
    }

    .ab-breach-stats .impact-score-label {
        font-size: 0.875rem;
    }

    .ab-breach-related {
        padding-left: 0 !important;
        min-width: unset !important;
        width: 100%;
    }

    .ab-breach-related-grid {
        grid-template-columns: 1fr;
    }

    .ab-breach-related-header {
        flex-direction: row;
        gap: 0.5rem;
    }

    .ab-breach-related-item {
        margin-bottom: 0.75rem;
    }

    .ab-breach-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-previous,
    .nav-next {
        top: unset;
        bottom: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .ab-breach-stats .financial-impact {
        font-size: 1.25rem;
    }

    .ab-breach-stats .financial-impact-label {
        font-size: 0.875rem;
    }
}

/* Small phones */
@media (max-width: 479px) {
    .ab-breach-logo {
        width: 40px;
        height: 40px;
    }

    .ab-breach-title {
        font-size: 1rem;
    }

    .ab-breach-detail-label,
    .ab-breach-detail-value {
        font-size: 0.875rem;
    }

    .ab-breach-stats {
        margin: 1rem 0;
    }

    .ab-breach-stats > div {
        padding: 0.75rem;
    }

    .ab-breach-stats .impact-gauge-container {
        height: 80px;
    }

    .ab-breach-stats .impact-score-value {
        font-size: 1.25rem;
    }

    .ab-breach-related-logo {
        width: 32px;
        height: 32px;
    }

    .ab-breach-related-title {
        font-size: 0.875rem;
    }

    .ab-breach-related-item {
        padding: 0.75rem;
    }

    .ab-breach-stats .financial-impact {
        font-size: 1.125rem;
    }

    .breach-pill {
        min-width: unset;
        font-size: 0.75em;
        padding: 0.4em 0.6em;
    }

    .ab-breach-description-content {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
/* Hide Redundant Areas */
.ab-breach-meta span:nth-of-type(2),
.ab-breach-meta span:nth-of-type(3),
.ab-breach-related-meta span:nth-of-type(2),
.ab-breach-details {
    display: none;
}

/* Add smooth transitions for better UX */
.ab-breach-stats > div,
.ab-breach-related-item {
    transition: all 0.3s ease;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .ab-breach-stats > div,
    .ab-breach-related-item {
        min-height: 44px;
    }
}

/* Flaticon UIcons in related cards */
.ab-breach-related-meta .fi {
    font-size: 14px;
    margin-right: 6px;
    color: #6b7280;
    vertical-align: -1px;
}

.ab-breach-related-detail-label .fi {
    font-size: 14px;
    margin-right: 6px;
    color: #6b7280;
}