/* HTMX indicators */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}
.htmx-request.htmx-indicator {
    display: block;
}
.htmx-indicator-hide {
    display: inline;
}
.htmx-request .htmx-indicator-hide {
    display: none;
}
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in > * {
    animation: fade-in 0.5s ease-out forwards;
    opacity: 0;
}

/* Content pages (privacy, terms, cookie policy, etc.) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.content-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}
.content-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.content-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.content-page p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.content-page ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.content-page ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.content-page a {
    color: #2563eb;
}
.content-page a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.content-page table th,
.content-page table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.content-page table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}
.content-page table tr:nth-child(even) {
    background-color: #f9fafb;
}
.content-page hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* Cookie consent banner styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cookie-consent-btn-accept-all {
    background: #27ae60;
    color: white;
}

.cookie-consent-btn-accept-all:hover {
    background: #229954;
}

.cookie-consent-btn-essential {
    background: #95a5a6;
    color: white;
}

.cookie-consent-btn-essential:hover {
    background: #7f8c8d;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-consent-btn-settings:hover {
    background: rgba(255,255,255,0.1);
}

/* Cookie settings modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    color: #333;
}

.cookie-settings-header {
    margin-bottom: 20px;
}

.cookie-settings-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.cookie-category {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.cookie-category p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #27ae60;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-consent-btn {
        flex: 1;
    }
}

/* Breadcrumbs */
.breadcrumb-section {
    margin-bottom: 1rem;
}

.breadcrumb-container {
    font-size: 0.95rem;
    color: #6b7280;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item:before {
    content: "›";
    color: #9ca3af;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #111827;
    font-weight: 600;
}
