/**
 * Dugunl Pakket Vergelijking - Styles
 */

.dugunl-pakket-vergelijking {
    max-width: 1200px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.pakket-table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.pakket-row {
    display: table-row;
}

.pakket-row:nth-child(even) {
    background: #f9f9f9;
}

.pakket-cell {
    display: table-cell;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.pakket-feature-label {
    text-align: left;
    font-weight: 500;
    width: 35%;
    padding-left: 1.5rem;
}

.pakket-column {
    width: 21.67%; /* 65% / 3 columns */
}

/* Header row */
.pakket-header .pakket-cell {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 1.5rem 1rem;
}

.pakket-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.pakket-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pakket-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.pakket-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.5rem;
}

/* Recommended column styling */
.pakket-recommended {
    background: #fef9e7 !important;
    position: relative;
}

.pakket-header .pakket-recommended {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%) !important;
}

/* Feature icons - Clean checkmark and X using CSS */
.pakket-feature-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
    line-height: 1;
}

.pakket-feature-yes::before {
    content: '✓';
    color: #22c55e;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.pakket-feature-no::before {
    content: '✕';
    color: #ef4444;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

/* Package action buttons */
.pakket-row.pakket-footer {
    background: #fff;
}

.pakket-row.pakket-footer .pakket-cell {
    padding: 1.5rem 1rem;
    border-bottom: none;
}

.pakket-action-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.pakket-action-btn.btn-primary {
    background: #d0e77d;
    color: #333;
    border: none;
}

.pakket-action-btn.btn-primary:hover {
    background: #c0d76d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 231, 125, 0.5);
}

.pakket-action-btn.btn-secondary {
    background: #fff;
    color: #333;
    border-color: #d1d5db;
}

.pakket-action-btn.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.pakket-action-btn.btn-current {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
    cursor: default;
}

.pakket-action-btn.btn-upgrade {
    background: #d0e77d;
    color: #333;
    border: none;
}

.pakket-action-btn.btn-upgrade:hover {
    background: #c0d76d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 231, 125, 0.5);
}

.pakket-action-btn.btn-downgrade {
    background: #fff;
    color: #ef4444;
    border-color: #ef4444;
}

.pakket-action-btn.btn-downgrade:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.pakket-action-btn.btn-contact {
    background: #1a1a1a;
    color: #fff;
    border: none;
}

.pakket-action-btn.btn-contact:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .dugunl-pakket-vergelijking {
        padding: 0;
        max-width: 100%;
    }

    .pakket-table {
        display: block;
        border: none;
        width: 100%;
    }

    /* Show header on mobile with cards */
    .pakket-header {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .pakket-header .pakket-feature-label {
        display: none;
    }

    .pakket-header .pakket-column {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem 0.5rem !important;
        text-align: center;
        background: #fff;
    }

    .pakket-header .pakket-recommended {
        border: 2px solid #fbbf24;
        background: #fef9e7 !important;
    }

    .pakket-name {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        display: block !important;
    }

    .pakket-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
        display: block !important;
    }

    .pakket-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
        margin-bottom: 0.25rem;
        display: inline-block !important;
    }

    .pakket-price {
        font-size: 0.8rem;
        font-weight: 600;
        display: block !important;
    }

    /* Each feature row becomes a section with package columns side by side */
    .pakket-row {
        display: block;
        margin-bottom: 1.5rem;
        border: none;
        background: transparent;
        width: 100%;
    }

    .pakket-row:nth-child(even) {
        background: transparent;
    }

    /* Feature label spans full width */
    .pakket-feature-label {
        display: block;
        width: 100%;
        text-align: left;
        background: #f8f9fa;
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        margin-bottom: 0;
    }

    /* Package columns displayed as cards in a grid */
    .pakket-row:not(.pakket-header):not(.pakket-footer) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
    }

    .pakket-row:not(.pakket-header):not(.pakket-footer) .pakket-feature-label {
        grid-column: 1 / -1;
        border-radius: 0;
    }

    .pakket-cell.pakket-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.25rem;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
    }

    .pakket-cell.pakket-column:last-child {
        border-right: none;
    }

    .pakket-feature-icon {
        width: 28px;
        height: 28px;
    }

    .pakket-feature-yes::before {
        font-size: 28px;
    }

    .pakket-feature-no::before {
        font-size: 24px;
    }

    /* Footer row with buttons */
    .pakket-row.pakket-footer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .pakket-row.pakket-footer .pakket-feature-label {
        display: none;
    }

    .pakket-row.pakket-footer .pakket-cell {
        border: none;
        padding: 0;
        min-height: auto;
        width: 100%;
    }

    .pakket-action-btn {
        font-size: 0.7rem;
        padding: 0.6rem 0.25rem;
        width: 100%;
    }
}

/* Tablet view - 2 columns */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .pakket-feature-label {
        width: 40%;
        font-size: 0.9rem;
    }

    .pakket-column {
        width: 20%;
    }

    .pakket-name {
        font-size: 1.25rem;
    }

    .pakket-price {
        font-size: 1rem;
    }

    .pakket-cell {
        padding: 0.75rem;
    }
}

/* Print styles */
@media print {
    .dugunl-pakket-vergelijking {
        box-shadow: none;
    }

    .pakket-table {
        box-shadow: none;
        border: 1px solid #000;
    }

    .pakket-cell {
        border: 1px solid #000;
    }

    .pakket-recommended {
        background: #f0f0f0 !important;
    }
}
