/**
 * Side by Side Layout Widget Styles
 * 
 * @package Impact_Evaluator
 */

/* Side by Side Layout Container */
.side-by-side-layout-container {
    position: relative;
    width: 100%;
}

/* Side by Side Layout Section */
.side-by-side-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Column Headers */
.column-header {
    padding: 10px 0 0 0;
}

.column-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #020244;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #020244;
    padding-bottom: 10px;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.5);
}

/* Trending Column */
.column-trending {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    border-top-width: 5px;
    border-top-color: #020244;
    height: 100%;
    width: 100%;
}

/* Post Type Groups */
.post-type-group {
    margin-bottom: 20px;
}

.post-type-group:last-child {
    margin-bottom: 0;
}

/* Post Type More Title */
.post-type-more-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #020244;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: auto;
    min-width: 100px;
}

.post-type-more-title--left {
    text-align: left;
}

.post-type-more-title--center {
    text-align: center;
}

.post-type-more-title--right {
    text-align: right;
}

/* Typography Variations */
.post-type-more-title--small {
    font-size: 11px;
    padding: 5px 10px;
    min-width: 90px;
}

.post-type-more-title--medium {
    font-size: 16px;
    padding: 8px 16px;
    min-width: 120px;
}

.post-type-more-title--large {
    font-size: 18px;
    padding: 10px 20px;
    min-width: 140px;
}

/* Hover Effects */
.post-type-more-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-type-more-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.post-type-more-title a:hover {
    text-decoration: none;
}

.trending-post-compact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.trending-post-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.trending-post-compact:last-child {
    margin-bottom: 0;
}

.trending-post-compact .post-category {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #590000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.trending-post-compact .post-date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #666666;
    margin-bottom: 8px;
}

.trending-post-compact .post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #020244;
    line-height: 1.3;
}

/* Banner Column */
.column-banner {
    background: linear-gradient(135deg, rgba(2, 2, 68, 0.8) 0%, rgba(89, 0, 0, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
    height: 400px; /* Default height, can be overridden by controls */
    display: flex;
    flex-direction: column;
    position: relative;
}

.banner-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    position: relative;
    z-index: 2;
}

.banner-text-compact h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-text-compact p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
}

.banner-text-compact p:last-of-type {
    margin-bottom: 20px;
}

.banner-cta-compact {
    display: inline-block;
    background: #ffffff;
    color: #020244;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.banner-cta-compact:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #020244;
}

/* Banner CTA (Updated) */
.banner-cta {
    display: inline-block;
    background: #590000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.banner-cta:hover {
    background: #020244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #ffffff;
}

/* Banner Typography Classes */
.banner-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-title--small {
    font-size: 18px;
}

.banner-title--default {
    font-size: 22px;
}

.banner-title--medium {
    font-size: 26px;
}

.banner-title--large {
    font-size: 30px;
}

.banner-title--extra-large {
    font-size: 34px;
}

.banner-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-subtitle--small {
    font-size: 14px;
}

.banner-subtitle--default {
    font-size: 16px;
}

.banner-subtitle--medium {
    font-size: 18px;
}

.banner-subtitle--large {
    font-size: 20px;
}

.banner-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-description--small {
    font-size: 12px;
}

.banner-description--default {
    font-size: 14px;
}

.banner-description--medium {
    font-size: 16px;
}

.banner-description--large {
    font-size: 18px;
}

.banner-description:last-of-type {
    margin-bottom: 20px;
}

/* Banner Container */
.banner-container {
    background: #f8f9fa;
    color: #333333;
    padding: 20px 30px;
    border-radius: 0 0 8px 8px; /* Only round bottom corners to connect with banner */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.banner-container h1,
.banner-container h2,
.banner-container h3,
.banner-container h4,
.banner-container h5,
.banner-container h6 {
    color: #020244;
    margin-bottom: 10px;
}

.banner-container p {
    margin-bottom: 15px;
}

.banner-container p:last-child {
    margin-bottom: 0;
}

.banner-container a {
    color: #590000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.banner-container a:hover {
    color: #020244;
    text-decoration: underline;
}

/* Banner Overlay Support */
.banner-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 2, 68, 0.8);
    border-radius: 12px 12px 0 0; /* Only round top corners */
    z-index: 1;
}

.banner-text-compact {
    position: relative;
    z-index: 2;
}

/* Tools Column */
.column-tools {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    border-top-width: 5px;
    border-top-color: #020244;
    height: 100%;
    width: 100%;
}

.tool-item-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-item-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #ffffff;
}

.tool-item-compact:last-child {
    margin-bottom: 0;
}

.tool-icon-small {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020244;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.tool-item-compact:hover .tool-icon-small {
    background: #590000;
}

.tool-icon-small i {
    font-size: 18px;
    color: #ffffff;
}

.tool-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #020244;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.tool-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #666666;
    margin: 0;
    line-height: 1.3;
}

/* Column Content Padding */
.column-content {
    padding: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .three-column-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .post-type-group {
        margin-bottom: 18px;
    }

    .post-type-more-title {
        font-size: 13px;
        margin-top: 10px;
        padding: 5px 10px;
        min-width: 90px;
    }

    .post-type-more-title--small {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 80px;
    }

    .post-type-more-title--medium {
        font-size: 15px;
        padding: 6px 12px;
        min-width: 100px;
    }

    .post-type-more-title--large {
        font-size: 16px;
        padding: 8px 16px;
        min-width: 120px;
    }

    .banner-text-compact h3 {
        font-size: 20px;
    }

    /* Banner Typography Responsive - Tablet */
    .banner-title--small {
        font-size: 16px;
    }

    .banner-title--default {
        font-size: 20px;
    }

    .banner-title--medium {
        font-size: 24px;
    }

    .banner-title--large {
        font-size: 28px;
    }

    .banner-title--extra-large {
        font-size: 32px;
    }

    .banner-subtitle--small {
        font-size: 13px;
    }

    .banner-subtitle--default {
        font-size: 15px;
    }

    .banner-subtitle--medium {
        font-size: 17px;
    }

    .banner-subtitle--large {
        font-size: 19px;
    }

    .banner-description--small {
        font-size: 11px;
    }

    .banner-description--default {
        font-size: 13px;
    }

    .banner-description--medium {
        font-size: 15px;
    }

    .banner-description--large {
        font-size: 17px;
    }

    .banner-container {
        padding: 18px 25px;
    }

    .column-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .side-by-side-section {
        padding: 40px 0;
    }
    
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-type-group {
        margin-bottom: 15px;
    }

    .post-type-more-title {
        font-size: 12px;
        margin-top: 8px;
        padding: 4px 8px;
        min-width: 80px;
    }

    .post-type-more-title--small {
        font-size: 9px;
        padding: 3px 6px;
        min-width: 70px;
    }

    .post-type-more-title--medium {
        font-size: 14px;
        padding: 5px 10px;
        min-width: 90px;
    }

    .post-type-more-title--large {
        font-size: 15px;
        padding: 6px 12px;
        min-width: 100px;
    }

    .banner-text-compact h3 {
        font-size: 18px;
    }

    /* Banner Typography Responsive - Mobile */
    .banner-title--small {
        font-size: 14px;
    }

    .banner-title--default {
        font-size: 18px;
    }

    .banner-title--medium {
        font-size: 22px;
    }

    .banner-title--large {
        font-size: 26px;
    }

    .banner-title--extra-large {
        font-size: 30px;
    }

    .banner-subtitle--small {
        font-size: 12px;
    }

    .banner-subtitle--default {
        font-size: 14px;
    }

    .banner-subtitle--medium {
        font-size: 16px;
    }

    .banner-subtitle--large {
        font-size: 18px;
    }

    .banner-description--small {
        font-size: 10px;
    }

    .banner-description--default {
        font-size: 12px;
    }

    .banner-description--medium {
        font-size: 14px;
    }

    .banner-description--large {
        font-size: 16px;
    }

    .banner-container {
        padding: 15px 20px;
    }

    .column-header h3 {
        font-size: 16px;
    }
    
    .tool-item-compact {
        padding: 12px;
        gap: 12px;
    }
    
    .tool-icon-small {
        width: 35px;
        height: 35px;
    }
    
    .tool-icon-small i {
        font-size: 16px;
    }
    
    .trending-post-compact {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .side-by-side-section {
        padding: 30px 0;
    }
    
    .column-content {
        padding: 0 15px 15px 15px;
    }
    
    .banner-text-compact h3 {
        font-size: 16px;
    }

    .banner-text-compact p {
        font-size: 13px;
    }

    .banner-cta-compact,
    .banner-cta {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Banner Typography Responsive - Small Mobile */
    .banner-title--small {
        font-size: 12px;
    }

    .banner-title--default {
        font-size: 16px;
    }

    .banner-title--medium {
        font-size: 20px;
    }

    .banner-title--large {
        font-size: 24px;
    }

    .banner-title--extra-large {
        font-size: 28px;
    }

    .banner-subtitle--small {
        font-size: 11px;
    }

    .banner-subtitle--default {
        font-size: 13px;
    }

    .banner-subtitle--medium {
        font-size: 15px;
    }

    .banner-subtitle--large {
        font-size: 17px;
    }

    .banner-description--small {
        font-size: 9px;
    }

    .banner-description--default {
        font-size: 11px;
    }

    .banner-description--medium {
        font-size: 13px;
    }

    .banner-description--large {
        font-size: 15px;
    }

    .banner-container {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .tool-info h4 {
        font-size: 13px;
    }
    
    .tool-info p {
        font-size: 11px;
    }
    
    .trending-post-compact .post-title {
        font-size: 13px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.side-by-side-layout-container .column-trending,
.side-by-side-layout-container .column-banner,
.side-by-side-layout-container .column-tools {
    animation: fadeInUp 0.6s ease-out forwards;
}

.side-by-side-layout-container .column-trending {
    animation-delay: 0.1s;
}

.side-by-side-layout-container .column-banner {
    animation-delay: 0.2s;
}

.side-by-side-layout-container .column-tools {
    animation-delay: 0.3s;
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .side-by-side-layout-container .column-trending,
.elementor-editor-active .side-by-side-layout-container .column-banner,
.elementor-editor-active .side-by-side-layout-container .column-tools {
    animation: none;
}

/* Focus States for Accessibility */
.trending-post-compact:focus,
.tool-item-compact:focus,
.banner-cta-compact:focus,
.banner-cta:focus {
    outline: 2px solid #020244;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .column-trending,
    .column-tools {
        border-width: 2px;
    }
    
    .column-header h3 {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .banner-cta-compact,
    .banner-cta {
        border: 2px solid #020244;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .side-by-side-layout-container .column-trending,
    .side-by-side-layout-container .column-banner,
    .side-by-side-layout-container .column-tools {
        animation: none;
    }
    
    .trending-post-compact,
    .tool-item-compact,
    .banner-cta-compact,
    .banner-cta {
        transition: none;
    }
    
    .trending-post-compact:hover,
    .tool-item-compact:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .side-by-side-section {
        background: #ffffff !important;
        padding: 20px 0 !important;
    }
    
    .three-column-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .column-banner {
        background: #f8f9fa !important;
        color: #000000 !important;
    }
    
    .banner-text-compact h2,
    .banner-text-compact h3,
    .banner-text-compact p,
    .banner-title,
    .banner-subtitle,
    .banner-description {
        color: #000000 !important;
    }

    .banner-cta-compact,
    .banner-cta {
        display: none;
    }

    .banner-container {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}
