/* Buying Guide Block Styles */

/* Main Container */
.buying-guide-showcase {
    width: 100%;
    max-width: 100%;
    margin: 2.5rem 0;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.buying-guide-container {
    width: 100%;
}

/* Header */
.buying-guide-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 2rem 2rem 1.75rem;
    color: #ffffff;
}

.buying-guide-title {
    color: #ffffff;
    font-size: 1.875rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.buying-guide-intro {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Section Titles */
.buying-guide-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    padding: 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Key Factors Section */
.buying-guide-factors {
    padding: 2rem 0;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
}

.buying-guide-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

/* Factor Cards */
.buying-guide-factor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buying-guide-factor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* Factor Header - Icon + Title side by side */
.buying-guide-factor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

/* Factor Icon with Letter */
.buying-guide-factor-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.buying-guide-factor-card:hover .buying-guide-factor-icon {
    transform: scale(1.05);
}

.buying-guide-factor-icon .factor-letter {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

/* Different gradient backgrounds for each factor */
.buying-guide-factor-card[data-factor-index="1"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.buying-guide-factor-card[data-factor-index="2"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.buying-guide-factor-card[data-factor-index="3"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.buying-guide-factor-card[data-factor-index="4"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.buying-guide-factor-card[data-factor-index="5"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.buying-guide-factor-card[data-factor-index="6"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.buying-guide-factor-card[data-factor-index="7"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.buying-guide-factor-card[data-factor-index="8"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.buying-guide-factor-card[data-factor-index="9"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.buying-guide-factor-card[data-factor-index="10"] .buying-guide-factor-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Hover effect for icons */
.buying-guide-factor-card:hover .buying-guide-factor-icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Factor Name and Description */
.buying-guide-factor-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 1;
}

.buying-guide-factor-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Quick Reference Table Section */
.buying-guide-table-section {
    padding: 2rem 0;
    background: #ffffff;
}

.buying-guide-table-wrapper {
    overflow-x: auto;
    padding: 0 2rem;
}

.buying-guide-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.buying-guide-table thead {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.buying-guide-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.buying-guide-table thead th:last-child {
    border-right: none;
}

.buying-guide-table tbody tr {
    transition: background-color 0.2s ease;
}

.buying-guide-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.buying-guide-table tbody tr:hover {
    background: #f3f4f6;
}

.buying-guide-table tbody td {
    padding: 1rem 1.25rem;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.6;
    border-top: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    vertical-align: top;
}

.buying-guide-table tbody td:first-child {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.buying-guide-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #3b82f6;
}

/* Conclusion */
.buying-guide-conclusion {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bae6fd;
}

.buying-guide-conclusion .buying-guide-section-title {
    padding: 0;
    margin-bottom: 1rem;
}

.buying-guide-conclusion-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.buying-guide-conclusion-text p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .buying-guide-showcase {
        margin: 2rem 0;
        border-radius: 12px;
    }

    .buying-guide-header {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .buying-guide-title {
        font-size: 1.5rem;
    }

    .buying-guide-intro {
        font-size: 1rem;
    }

    .buying-guide-section-title {
        font-size: 1.25rem;
        padding: 0 1.5rem;
    }

    .buying-guide-factors {
        padding: 1.5rem 0;
    }

    .buying-guide-factors-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1.5rem;
    }

    .buying-guide-factor-card {
        padding: 1.25rem;
    }

    .buying-guide-factor-header {
        gap: 0.875rem;
    }

    .buying-guide-factor-icon {
        width: 52px;
        height: 52px;
    }

    .buying-guide-factor-icon .factor-letter {
        font-size: 26px;
    }

    .buying-guide-factor-name {
        font-size: 1.0625rem;
    }

    .buying-guide-table-section {
        padding: 1.5rem 0;
    }

    .buying-guide-table-wrapper {
        padding: 0 1.5rem;
    }

    .buying-guide-table {
        min-width: 500px;
    }

    .buying-guide-table thead th,
    .buying-guide-table tbody td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .buying-guide-conclusion {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .buying-guide-header {
        padding: 1.25rem;
    }

    .buying-guide-title {
        font-size: 1.375rem;
    }

    .buying-guide-intro {
        font-size: 0.9375rem;
    }

    .buying-guide-section-title {
        font-size: 1.125rem;
        padding: 0 1.25rem;
    }

    .buying-guide-factors-grid {
        padding: 0 1.25rem;
    }

    .buying-guide-factor-header {
        gap: 0.75rem;
    }

    .buying-guide-factor-icon {
        width: 48px;
        height: 48px;
    }

    .buying-guide-factor-icon .factor-letter {
        font-size: 24px;
    }

    .buying-guide-factor-name {
        font-size: 1rem;
    }

    .buying-guide-table-wrapper {
        padding: 0 1.25rem;
    }

    .buying-guide-table {
        min-width: 450px;
    }

    .buying-guide-conclusion {
        padding: 1.25rem;
    }
}

/* Scroll Hint for Table */
@media (max-width: 900px) {
    .buying-guide-table-wrapper::after {
        content: "← Scroll to see all columns →";
        display: block;
        text-align: center;
        padding: 0.75rem 0 0;
        font-size: 0.75rem;
        color: #6b7280;
        font-style: italic;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
}
