/* 
 * Potkasts Public Components
 * Button system, forms, cards, and layout components
 */

/* ===== BUTTON SYSTEM ===== */

/* Share Modal */
.share-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(110%);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(30px) saturate(200%) brightness(120%);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(120%);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 400px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-modal.active {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
}

.share-modal-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-modal-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.share-modal-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.share-modal-text p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #8e8e93;
}

.share-modal-close {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background-color: #48484a;
}

.share-modal-options {
    padding: 24px 20px 32px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 70px;
    -webkit-tap-highlight-color: transparent;
}

.share-option:hover {
    background-color: #3a3a3c;
}

.share-option:active {
    background-color: #48484a;
    transform: scale(0.95);
}

.share-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-option-icon.whatsapp {
    background: #25d366;
}

.share-option-icon.facebook {
    background: #1877f2;
}

.share-option-icon.twitter {
    background: #000000;
}

.share-option-icon.linkedin {
    background: #0077b5;
}

.share-option-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-option-icon.copy {
    background: #6c6c70;
}

.share-option span {
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
}

/* iPhone style handle */
.share-modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 5px;
    background: #48484a;
    border-radius: 3px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .share-modal-backdrop {
        align-items: center;
    }
    
    .share-modal {
        border-radius: 20px;
        max-width: 400px;
        transform: scale(0.9);
    }
    
    .share-modal.active {
        transform: scale(1);
    }
    
    .share-modal::before {
        display: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--btn-padding-base);
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size-base);
    font-weight: var(--btn-font-weight);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: var(--btn-transition);
    min-height: var(--btn-min-height);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:focus {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Button sizes */
.btn-sm {
    padding: var(--btn-padding-sm);
    font-size: var(--btn-font-size-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--btn-padding-lg);
    font-size: var(--btn-font-size-lg);
    min-height: 52px;
}

/* Button variants */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--btn-primary-bg-hover);
    transform: var(--btn-transform-hover);
    box-shadow: 0 15px 35px var(--color-shadow-primary);
}

.btn-primary:active {
    transform: var(--btn-transform-active);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border: var(--btn-secondary-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--btn-secondary-bg-hover);
    color: var(--btn-secondary-color-hover);
    border: var(--btn-secondary-border-hover);
    transform: var(--btn-transform-hover);
}

.btn-success {
    background: var(--btn-success-bg);
    color: var(--btn-success-color);
    box-shadow: var(--btn-success-shadow);
}

.btn-success:hover:not(:disabled) {
    background: var(--btn-success-bg-hover);
    transform: var(--btn-transform-hover);
    box-shadow: 0 15px 35px var(--color-shadow-success);
}

.btn-warning {
    background: var(--btn-warning-bg);
    color: var(--btn-warning-color);
    box-shadow: var(--btn-warning-shadow);
}

.btn-warning:hover:not(:disabled) {
    background: var(--btn-warning-bg-hover);
    transform: var(--btn-transform-hover);
    box-shadow: 0 15px 35px var(--color-shadow-warning);
}

.btn-danger {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-color);
    box-shadow: var(--btn-danger-shadow);
}

.btn-danger:hover:not(:disabled) {
    background: var(--btn-danger-bg-hover);
    transform: var(--btn-transform-hover);
    box-shadow: 0 15px 35px var(--color-shadow-danger);
}

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FORM COMPONENTS ===== */

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

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

.form-input,
.form-select,
.form-textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-muted);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help,
.form-text {
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.form-error {
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-danger);
}

/* Alert styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: var(--font-size-base);
}

.alert-info {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 202, 240, 0.4);
}

.alert-info strong {
    color: #000000;
    font-weight: 600;
}

.alert-info li {
    color: #000000;
}

.alert-info h6 {
    color: #000000;
}

.alert h6 {
    margin-bottom: 0.5rem;
    color: inherit;
    font-weight: var(--font-weight-semibold);
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* ===== CARD COMPONENTS ===== */

.card {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-primary);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--color-shadow-default);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 80px var(--color-shadow-default);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-muted);
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.card-subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-muted);
}

/* ===== NAVIGATION COMPONENTS ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-muted);
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-height: 44px;
}

.navbar-nav a:hover {
    color: var(--color-brand-primary);
    background: var(--color-brand-purple-alpha);
}

.navbar-nav a.active {
    color: var(--color-brand-primary);
    background: var(--color-brand-purple-alpha);
}

.navbar-nav a.disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.navbar-nav a.disabled:hover {
    color: var(--color-text-muted);
    background: none;
}

/* Mobile navigation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-glass);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--color-border-muted);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav a {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== LAYOUT COMPONENTS ===== */

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

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1rem;
    background: var(--gradient-text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== GRID COMPONENTS ===== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid */
@media (min-width: 768px) {
    .grid-md-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-md-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-md-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .grid-lg-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-lg-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-lg-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Auto-fit grid for responsive cards */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ===== UTILITY CLASSES ===== */

/* Spacing */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }

.m-1 { margin: 0.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }

.m-2 { margin: 1rem; }
.mt-2 { margin-top: 1rem; }
.mr-2 { margin-right: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.ml-2 { margin-left: 1rem; }

.m-3 { margin: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mr-3 { margin-right: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-3 { margin-left: 1.5rem; }

.m-4 { margin: 2rem; }
.mt-4 { margin-top: 2rem; }
.mr-4 { margin-right: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-4 { margin-left: 2rem; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pr-0 { padding-right: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }

.p-1 { padding: 0.5rem; }
.pt-1 { padding-top: 0.5rem; }
.pr-1 { padding-right: 0.5rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pl-1 { padding-left: 0.5rem; }

.p-2 { padding: 1rem; }
.pt-2 { padding-top: 1rem; }
.pr-2 { padding-right: 1rem; }
.pb-2 { padding-bottom: 1rem; }
.pl-2 { padding-left: 1rem; }

.p-3 { padding: 1.5rem; }
.pt-3 { padding-top: 1.5rem; }
.pr-3 { padding-right: 1.5rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pl-3 { padding-left: 1.5rem; }

.p-4 { padding: 2rem; }
.pt-4 { padding-top: 2rem; }
.pr-4 { padding-right: 2rem; }
.pb-4 { padding-bottom: 2rem; }
.pl-4 { padding-left: 2rem; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }

/* Responsive utilities */
@media (max-width: 768px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .d-sm-flex { display: flex; }
    .text-sm-center { text-align: center; }
}

@media (min-width: 769px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
}

@media (min-width: 1024px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    .d-lg-flex { display: flex; }
}

/* ===== PAGINATION COMPONENTS ===== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    backdrop-filter: blur(20px);
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 2.75rem;
    justify-content: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.page-link:hover::before {
    opacity: 1;
}

.page-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-item.active .page-link::before {
    opacity: 0;
}

.page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    pointer-events: none;
    opacity: 0.5;
}

.pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

.pagination-total {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
}

/* Mobile responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        margin: 2rem 0 1rem 0;
        padding: 1.5rem 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.125rem;
        padding: 0.375rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 2.25rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
    
    .pagination-total {
        font-size: 0.9rem;
    }
}

/* Dark theme improvements */
@media (prefers-color-scheme: dark) {
    .pagination-container {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .pagination {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* ===== COOKIE CONSENT BANNER ===== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    border-top: 2px solid #4154f1;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    color: #4154f1;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.3s ease-out;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #4154f1 0%, #5a67d8 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-category h4 {
    margin: 0;
    font-size: 1rem;
    color: #1a365d;
    display: flex;
    align-items: center;
}

.cookie-always-on {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.cookie-category p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e0;
    border-radius: 24px;
    transition: 0.3s ease;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background: #4154f1;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    background: #f8fafc;
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-modal {
        padding: 0.5rem;
    }
    
    .cookie-modal-content {
        margin: 0;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        width: 100%;
    }
    
    .cookie-banner-actions .btn {
        flex: 1;
        font-size: 0.8rem;
    }
}
