/**
 * Lucky Pros vs Cons Widget Styles
 *
 * @package LuckyProsVsCons
 * @since 1.0.0
 */

/* Base Styles */
.luckyprosvscsons-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Section Styles */
.proscons-section {
    padding: clamp(16px, 2.5vw, 21px) 0;
    background: linear-gradient(135deg, #f4f6f8 0%, #e8ecef 100%);
}

.container {
    max-width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 0 clamp(8px, 1.5vw, 10px);
}

.proscons-content {
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(12px, 2vw, 16px);
    border-radius: clamp(6px, 1vw, 8px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    border-radius: clamp(6px, 1vw, 8px);
    padding: clamp(12px, 1.875vw, 17px);
    margin-bottom: 4px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-title h1,
.header-title h2,
.header-title h3,
.header-title h4,
.header-title h5,
.header-title h6 {
    font-size: clamp(1.375rem, 3.75vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 clamp(6px, 1.25vw, 9px) 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header-description {
    font-size: clamp(0.9rem, 1.875vw, 1.125rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 clamp(9px, 1.25vw, 11px) 0;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.header-description p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.header-icon {
    width: clamp(25px, 3.75vw, 32px);
    height: clamp(25px, 3.75vw, 32px);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    border-radius: clamp(6px, 1.25vw, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: clamp(1rem, 1.875vw, 1.25rem);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Rainbow Stripe */
.rainbow-stripe {
    height: clamp(1.5px, 0.25vw, 2.5px);
    background: linear-gradient(90deg, 
        #ff6b35, #ff8f5a,  /* narancs */
        #2196f3, #42a5f5,  /* kék */
        #4caf50, #66bb6a,  /* zöld */
        #9c27b0, #ba68c8   /* lila */
    );
    border-radius: 1.5px;
    margin-bottom: clamp(10px, 2vw, 16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 16px);
}

.comparison-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.comparison-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comparison-column:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.comparison-column:hover::before {
    opacity: 1;
}

.column-header {
    padding: clamp(10px, 2vw, 14px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.column-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.comparison-column:hover .column-header::before {
    left: 100%;
}

.pros-header {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cons-header {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #fca5a5 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.column-title {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 800;
    margin: 0 0 clamp(3px, 0.75vw, 5px) 0;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.column-title h1,
.column-title h2,
.column-title h3,
.column-title h4,
.column-title h5,
.column-title h6 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.column-subtitle {
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
}

.column-subtitle p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    opacity: inherit;
}

.comparison-list {
    padding: clamp(10px, 2vw, 14px);
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(6px, 1.25vw, 9px);
    padding: clamp(7px, 1.5vw, 10px);
    margin-bottom: clamp(5px, 1vw, 7px);
    border-radius: clamp(6px, 1vw, 8px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comparison-item:hover {
    transform: translateX(4px) translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.comparison-item:hover::before {
    opacity: 1;
}

.pros-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-left: 2px solid #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cons-item {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-left: 2px solid #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.item-icon {
    width: clamp(14px, 2.5vw, 19px);
    height: clamp(14px, 2.5vw, 19px);
    border-radius: clamp(4px, 0.75vw, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}

.comparison-item:hover .item-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.4);
}

.pros-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    color: #ffffff;
}

.cons-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #fca5a5 100%);
    color: #ffffff;
}

.item-text {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: #374151;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.comparison-item:hover .item-text {
    color: #1f2937;
}

.item-text p,
.item-text h1,
.item-text h2,
.item-text h3,
.item-text h4,
.item-text h5,
.item-text h6 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
    .proscons-section {
        padding: clamp(12px, 2vw, 16px) 0;
    }

    .proscons-content {
        padding: clamp(10px, 1.5vw, 12px);
    }

    .header-section {
        padding: clamp(12px, 1.875vw, 15px);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: clamp(8px, 1.5vw, 10px);
    }
}

/* Mobile Responsive (480px and below) */
@media (max-width: 480px) {
    .proscons-section {
        padding: clamp(8px, 1.5vw, 11px) 0;
    }

    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .proscons-content {
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .header-section {
        margin: 0 clamp(3px, 1vw, 4px) 4px clamp(3px, 1vw, 4px);
        border-radius: clamp(6px, 1.5vw, 8px);
        padding: clamp(10px, 1.875vw, 12px);
    }

    .rainbow-stripe {
        margin: 3px clamp(3px, 1vw, 4px) clamp(8px, 1.5vw, 10px) clamp(3px, 1vw, 4px);
        height: clamp(1.5px, 0.25vw, 2px);
    }

    .comparison-grid {
        gap: clamp(7px, 1.5vw, 9px);
        padding: 0 clamp(3px, 1vw, 4px);
    }

    .comparison-column {
        border-radius: clamp(6px, 1.5vw, 8px);
        transform: none !important;
        box-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .comparison-column:hover {
        transform: translateY(-2px) !important;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }

    .column-header {
        padding: clamp(7px, 1.5vw, 9px);
    }

    .comparison-list {
        padding: clamp(7px, 1.5vw, 9px);
    }

    .comparison-item {
        padding: clamp(5px, 1.25vw, 7px);
        margin-bottom: clamp(3px, 0.75vw, 4px);
        gap: clamp(5px, 1vw, 6px);
    }

    .item-icon {
        width: clamp(12px, 3vw, 16px);
        height: clamp(12px, 3vw, 16px);
        font-size: clamp(0.55rem, 1vw, 0.7rem);
    }

    .comparison-item:hover {
        transform: translateX(2px) translateY(-0.5px) !important;
    }
}

/* Loading Animation */
.comparison-column {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.comparison-column:nth-child(1) {
    animation-delay: 0.2s;
}

.comparison-column:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementor Editor Specific */
.elementor-editor-active .comparison-column {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

/* High DPI Screen Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-icon,
    .item-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .proscons-section {
        background: white !important;
    }
    
    .proscons-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .comparison-column:hover {
        transform: none !important;
        box-shadow: none !important;
    }
} 