/**
 * Platform Graph Widget Styles
 *
 * Platform dashboard with statistics.
 *
 * @package CleanlistElementorWidgets
 * @since 1.0.0
 */

/* ==========================================================================
   WIDGET CONTAINERS
   ========================================================================== */

.platform-graph-container {
    background: #FFFFFF;
    padding: 60px 40px;
    border-radius: 12px;
    max-width: 1440px;
    margin: 0 auto;
}

.platform-graph-main-content-container {
    position: relative;
}

.platform-graph-content-overlay {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.platform-graph-background-decoration {
    display: none;
    width: 90%;
    height: 100%;
    border: 1px dashed #22813F;
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    margin: 0 auto;
    border-radius: 24px;

    @media (min-width: 1200px) {
        display: block;
    }
}

/* ==========================================================================
   HEADER TEXT
   ========================================================================== */

.platform-graph-header {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    text-transform: uppercase;
    color: #22813F;
    text-align: center;
}

/* ==========================================================================
   MAIN TITLE
   ========================================================================== */

h2.platform-graph-main-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 40px;
    color: #263238;
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   MAIN CONTENT GRID
   ========================================================================== */

.platform-graph-main-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    align-items: stretch;

    @media (min-width: 992px) {
        flex-direction: row;
        align-items: center;
    }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.platform-graph-section-header {
    background: #22813F;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
}

/* ==========================================================================
   LEFT AND RIGHT SECTIONS (STATS)
   ========================================================================== */

.platform-graph-left-section,
.platform-graph-right-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;

    @media (min-width: 992px) {
        flex-basis: 25%;
    }
}

/* ==========================================================================
   CENTER CONTENT
   ========================================================================== */

.platform-graph-center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.platform-graph-description {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #263238;
    margin-bottom: 20px;
    text-align: center;
}

.platform-graph-details {
    font-size: 15px;
    line-height: 30px;
    color: #263238;
    text-align: center;
    margin-bottom: 0;
}

/* ==========================================================================
   BOTTOM SECTION
   ========================================================================== */

.platform-graph-bottom-section {
    margin-top: 30px;
}

.platform-graph-bottom-header {
    background: #22813F;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
}

.platform-graph-bottom-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    row-gap: 12px;
    padding: 25px 0;
    max-width: 85%;
    margin: 0 auto;
}

.platform-graph-bottom-items .platform-graph-stat-item {
    width: auto;
}

/* ==========================================================================
   STAT ITEMS
   ========================================================================== */

.platform-graph-stat-items {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 15px 0 20px;
    row-gap: 15px;
}

.platform-graph-stat-item {
    display: flex;
    column-gap: 20px;
    background: #F7F8FA;
    padding: 17px 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    width: 80%;
}

.platform-graph-stat-content {
    flex: 1;
    text-align: center;
}

.platform-graph-stat-icon {
    display: flex;
    color: #263238;
    padding-top: 8px;
    font-size: 30px;
}

.platform-graph-stat-icon svg {
    width: 30px;
    height: 30px;
}

.platform-graph-stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #263238;
    line-height: 30px;
    margin-bottom: 8px;
}

.platform-graph-stat-label {
    font-size: 14px;
    font-weight: 400;
    color: #263238;
    text-transform: lowercase;
    line-height: 30px;
}

/* ==========================================================================
   REUSABLE CLASSES
   ========================================================================== */

.dashed-border {
    border: 1px dashed #22813F;
}
.no-top-border {
    border-top: none;
}
.no-bottom-border {
    border-bottom: none;
}
.no-left-border {
    border-left: none;
}
.no-right-border {
    border-right: none;
}

.cover-bkgd-decoration {
    background-color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Tablet (1024px and below) */
@media (max-width: 1024px) {
    .platform-graph-container {
        padding: 40px 30px;
    }

    h2.platform-graph-main-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .platform-graph-main-grid {
        gap: 30px;
    }

    .platform-graph-stat-number {
        font-size: 18px;
    }

    .platform-graph-description {
        font-size: 16px;
    }

    .platform-graph-bottom-items-container {
        gap: 15px;
    }
}

/* Tablet (991px and below) */
@media (max-width: 991px) {
    .platform-graph-container {
        padding: 30px 20px;
    }

    h2.platform-graph-main-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .platform-graph-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .platform-graph-center-content {
        order: -1;
        padding: 0;
        margin-bottom: 10px;
    }

    .platform-graph-left-section {
        order: 1;
    }

    .platform-graph-right-section {
        order: 2;
    }

    .platform-graph-stat-item {
        padding: 20px 15px;
    }

    .platform-graph-stat-number {
        font-size: 26px;
    }

    .platform-graph-bottom-section {
        margin-top: 30px;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    .platform-graph-container {
        padding: 25px 15px;
    }

    h2.platform-graph-main-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .platform-graph-main-grid {
        gap: 25px;
    }

    .platform-graph-section-header,
    .platform-graph-bottom-header {
        font-size: 11px;
        padding: 10px 15px;
    }

    .platform-graph-stat-item {
        padding: 18px 12px;
        margin-bottom: 12px;
    }

    .platform-graph-stat-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .platform-graph-stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .platform-graph-stat-number {
        font-size: 24px;
    }

    .platform-graph-stat-label {
        font-size: 13px;
    }

    .platform-graph-description {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .platform-graph-details {
        font-size: 14px;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .platform-graph-container {
        padding: 20px 12px;
    }

    h2.platform-graph-main-title {
        font-size: 20px;
        padding: 0 10px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .platform-graph-container {
        background: #FFFFFF !important;
        padding: 30px;
        page-break-inside: avoid;
    }

    .platform-graph-section-header,
    .platform-graph-bottom-header {
        background: #22813F !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .platform-graph-stat-icon {
        background: #22813F !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.platform-graph-stat-item:focus-within {
    outline: 2px solid #22813F;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .platform-graph-stat-item {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .platform-graph-section-header,
    .platform-graph-bottom-header {
        background: #000000;
        color: #FFFFFF;
    }

    .platform-graph-stat-icon {
        background: #000000;
        color: #FFFFFF;
    }

    .platform-graph-stat-item {
        border-color: #000000;
    }
}
