/* Specifické styly pro bitcoinove-karty-srovnani.php */

/* Page header s ikonou */
.page-header {
    margin-bottom: 2rem;
}

.page-title-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-title-container h1 {
    margin-bottom: 0;
    flex: 1;
    z-index: 1;
}

.page-icon {
    position: absolute;
    right: -20px;
    top: -10px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.15));
    z-index: 2;
}

.page-icon:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 8px 20px rgba(225, 29, 72, 0.25));
}

.page-icon svg {
    animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(0.5deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(-0.5deg); }
}

.page-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Osnova stránky */
.page-outline {
    background: rgba(225, 29, 72, 0.05);
    border-left: 4px solid #e11d48;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.page-outline h3 {
    color: #e11d48;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.outline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.outline-list li {
    margin-bottom: 0.5rem;
}

.outline-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.outline-list a:hover {
    color: #e11d48;
    text-decoration: underline;
}

/* Content subsections */
.content-subsection {
    margin-top: 3rem;
    scroll-margin-top: 120px;
}

.content-subsection:first-child {
    margin-top: 2rem;
}

/* Info visual - nová sekce s vysvětlením */
.info-visual {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
}

.comparison-item.good {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.comparison-item.bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.comparison-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.comparison-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.comparison-arrow {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
}

/* Enhanced comparison table - bez scrollbaru, pastelová hlavička */
.comparison-table {
    margin: 2rem -2rem; /* Rozšíření mimo container */
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Zrušení overflow pro scrollbar */
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    table-layout: fixed; /* Fixní layout pro kontrolu šířek sloupců */
}

.comparison-table th {
    background: #f1f5f9; /* Pastelová šedá */
    color: #1a1a1a;
    padding: 1.5rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
    word-wrap: break-word;
}

.comparison-table td {
    padding: 1.2rem 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.status-good {
    background: rgba(34, 197, 94, 0.05);
}

.status-partial {
    background: rgba(234, 179, 8, 0.05);
}

.status-bad {
    background: rgba(239, 68, 68, 0.05);
}

/* Enhanced table cells */
.status-cell {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    min-width: 60px;
}

.provider-cell {
    min-width: 150px;
}

.provider-cell strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #22c55e;
    color: white;
}

.status-badge.discontinued {
    background: #ef4444;
    color: white;
}

.rating-cell {
    min-width: 200px;
}

.rating {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rating.excellent {
    color: #22c55e;
}

.rating.good {
    color: #059669;
}

.rating.partial {
    color: #f59e0b;
}

.rating.poor {
    color: #ef4444;
}

.rating-cell small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Footnotes */
.footnotes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footnotes p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

/* Verdict box - vyvážený design */
.verdict-box {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(225, 29, 72, 0.05) 100%);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    color: #1a1a1a;
}

.verdict-box h2 {
    color: #e11d48;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.verdict-box p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* Recommendations */
.recommendations {
    margin: 3rem 0;
}

.recommendations h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recommendation-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.recommendation-card.best {
    border-color: #22c55e;
}

.recommendation-card.alternative {
    border-color: #f59e0b;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.recommendation-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.recommendation-card strong {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .page-icon {
        position: static;
        transform: scale(0.8);
        right: auto;
        top: auto;
    }
    
    .card-comparison-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .comparison-table {
        margin: 2rem -1rem; /* Menší rozšíření na mobilech */
        overflow-x: auto; /* Na mobilech ponechat scroll */
    }
    
    .comparison-table table {
        min-width: 700px; /* Minimální šířka na mobilech */
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .verdict-box {
        padding: 2rem;
    }
    
    .verdict-box h2 {
        font-size: 1.5rem;
    }
    
    .recommendation-cards {
        grid-template-columns: 1fr;
    }
    
    .page-outline {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .recommendations h3 {
        font-size: 1.3rem;
    }
    
    .recommendation-card {
        padding: 1.5rem;
    }
    
    .comparison-item {
        min-width: auto;
    }
    
    .page-intro {
        font-size: 1rem;
    }
}
