:root {
    /* Barvy operátorů */
    --tmobile-color: #e20074;
    --o2-color: #0066cc;
    --vodafone-color: #e60000;
    --blesk-color: #ff4444;

    /* Základní barvy */
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Background a text */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--tmobile-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.header__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Operators showcase */
.operators-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.operator-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.operator-logo:hover {
    transform: translateY(-2px);
}

.operator-logo.tmobile {
    background: linear-gradient(135deg, var(--tmobile-color), #ff0a7b);
}

.operator-logo.o2 {
    background: linear-gradient(135deg, var(--o2-color), #0077ff);
}

.operator-logo.vodafone {
    background: linear-gradient(135deg, var(--vodafone-color), #ff3333);
}

.operator-logo.blesk {
    background: linear-gradient(135deg, var(--blesk-color), #ff6666);
}

/* Card styling */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Form styling */
.calculator-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Slider styling */
.slider-container {
    position: relative;
    margin-bottom: 1rem;
}

.data-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.data-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.data-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.slider-value {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Checkboxes */
.checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Select styling */
.operator-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.operator-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Search button */
.search-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--tmobile-color));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Results section */
.results-section, .comparison-section {
    margin-bottom: 3rem;
}

.results-section h2, .comparison-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.results-container {
    display: grid;
    gap: 1.5rem;
}

/* Result card */
.result-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--border-color);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-card.best {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.result-card.tmobile {
    border-left-color: var(--tmobile-color);
}

.result-card.o2 {
    border-left-color: var(--o2-color);
}

.result-card.vodafone {
    border-left-color: var(--vodafone-color);
}

.result-card.blesk {
    border-left-color: var(--blesk-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.result-operator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.result-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.result-tariff {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.result-notes {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
}

/* Comparison table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    background: var(--surface-color);
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Tips section */
.tips-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tip-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .checkboxes-grid {
        grid-template-columns: 1fr;
    }

    .result-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA buttons on operator detail */
.cta-buttons{display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:0.75rem}
.cta-buttons a{padding:0.75rem 1rem;border-radius:10px;text-decoration:none;color:#fff;background:#2563eb;box-shadow:var(--shadow-sm)}
.cta-buttons a.secondary{background:#10b981}
.cta-buttons a.accent{background:#e20074}
.cta-buttons a:hover{filter:brightness(1.05)}



/* ========== TAG STYLES ========== */
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.tag:first-child {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Tag filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--background-color);
  border-radius: var(--radius-lg);
}

.tag-filter {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 600;
}

.tag-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tag-filter.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ========== OPERATOR ARTICLE STYLES ========== */
.operator-article {
  margin: 1rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.operator-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.operator-article p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.operator-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Enhanced CTA buttons in tariff cards */
.result-card .cta-buttons {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.result-card .cta-buttons a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: white;
  background: var(--primary-color);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.result-card .cta-buttons a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
