/* Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Inter-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Latin Extended */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Inter-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin Bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Inter-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Latin Extended Bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Inter-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --primary-color: #e91e63; /* Pink 500 - Amaterky style accent */
    --primary-hover: #c2185b; /* Pink 700 */
    --secondary-color: #f48fb1; /* Pink 200 */
    --text-color: #e2e8f0; /* Slate 200 */
    --light-text: #94a3b8; /* Slate 400 */
    --bg-color: #0f172a; /* Slate 900 - Dark Background */
    --card-bg: #1e293b; /* Slate 800 */
    --header-bg: #020617; /* Slate 950 */
    --border-color: #334155; /* Slate 700 */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.logo span {
    color: white;
}

.header-content {
    display: flex;
    flex-direction: column;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Hero / Search Bar Area */
.hero {
    background-color: var(--card-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero p {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}

/* Card (Profile Style) */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.card-link:hover {
    color: inherit;
}

.card-image-wrapper {
    position: relative;
    padding-top: 125%; /* Portrait aspect ratio 4:5 */
    overflow: hidden;
    background-color: #000;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Badge for "New" or "Top" */
/* .card-image-wrapper::before {
    content: 'NOVÉ';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
} */

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background-color: var(--header-bg);
    color: var(--light-text);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
}

.footer-links a {
    color: var(--light-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--light-text);
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 15px;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 10px;
    }
    
    .card h2 {
        font-size: 1rem;
    }
}

/* Article Detail Styling */
.article-container {
    max-width: 800px; /* Narrower container for better reading experience */
    padding-top: 2rem;
    padding-bottom: 4rem;
    margin: 0 auto;
}

.single-article {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: white;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content strong {
    color: white;
}

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--card-bg);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* Tips Box */
.tips-box {
    background-color: rgba(233, 30, 99, 0.1); /* Primary color with low opacity */
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.tips-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    display: flex;
    align-items: center;
}

.tips-box h3::before {
    content: '🔥';
    margin-right: 10px;
}

/* Tags */
.article-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--card-bg);
    color: var(--light-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Share & Back Links */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-share-fb {
    background-color: #1877f2;
    color: white;
    border: none;
}

.btn-share-fb:hover {
    background-color: #166fe5;
    color: white;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    color: var(--light-text);
    font-weight: 600;
}

.back-link a:hover {
    color: var(--primary-color);
}

/* Similar Articles */
.similar-articles {
    margin-top: 4rem;
}

.similar-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .single-article {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Amaterky Style Modal */
.cookie-modal-content.amaterky-style {
    background-color: #f8f9fa; /* Light background like Amaterky */
    color: #333;
    padding: 0;
    max-width: 600px;
    width: 95%;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #eee;
}

.modal-logo {
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: black;
}

.modal-scroll-area {
    padding: 1.5rem;
    overflow-y: auto;
}

.warning-title {
    color: #dc2626; /* Red */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.confirmation-text {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: black;
}

.exit-link {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.modal-section {
    background-color: #f1f5f9; /* Light gray section bg */
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.modal-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: black;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #e91e63; /* Pink border */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #e91e63;
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.cookies-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Accordion */
.cookie-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    font-weight: 600;
    color: #333;
}

.accordion-item.open .accordion-header {
    background-color: rgba(233, 30, 99, 0.1); /* Light pink */
    color: #e91e63;
}

.accordion-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.accordion-item.open .accordion-content {
    display: block;
}

.accordion-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.slider {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider {
    background-color: #e91e63;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

.label-text {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.modal-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-footer .btn-primary {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-footer .btn-primary:hover {
    background-color: #c2185b;
}

@media (max-width: 600px) {
    .modal-footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 10px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.cookie-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cookie-option strong {
    color: white;
    font-size: 0.95rem;
}

.cookie-desc {
    font-size: 0.8rem;
    color: var(--light-text);
}
