/**
 * Dev Cookie Consent - Styles
 */

/* Variables */
:root {
    --dcc-primary: #ff6b9d;
}

/* Banner Base */
.dcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dcc-banner.dcc-show {
    display: block;
    animation: dcc-slide-in 0.4s ease;
}

.dcc-position-bottom {
    bottom: 0;
}

.dcc-position-top {
    top: 0;
}

@keyframes dcc-slide-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dcc-position-top.dcc-banner.dcc-show {
    animation: dcc-slide-in-top 0.4s ease;
}

@keyframes dcc-slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark Theme */
.dcc-dark {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    border-top: 1px solid rgba(255, 107, 157, 0.3);
    color: #e0d4f7;
}

.dcc-dark .dcc-title {
    color: #fff;
}

.dcc-dark .dcc-description {
    color: #b8a5d6;
}

.dcc-dark .dcc-privacy-link {
    color: #ffd700;
}

.dcc-dark .dcc-preferences {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dcc-dark .dcc-pref-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dcc-dark .dcc-pref-name {
    color: #fff;
}

.dcc-dark .dcc-pref-desc {
    color: #b8a5d6;
}

/* Light Theme */
.dcc-light {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    color: #333;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.dcc-light .dcc-title {
    color: #1a1a1a;
}

.dcc-light .dcc-description {
    color: #666;
}

.dcc-light .dcc-privacy-link {
    color: var(--dcc-primary);
}

.dcc-light .dcc-preferences {
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}

.dcc-light .dcc-pref-item {
    border-bottom: 1px solid #e5e5e5;
}

.dcc-light .dcc-pref-name {
    color: #1a1a1a;
}

.dcc-light .dcc-pref-desc {
    color: #666;
}

/* Container */
.dcc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px;
}

/* Content */
.dcc-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dcc-text {
    flex: 1;
}

.dcc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.dcc-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.dcc-privacy-link {
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.dcc-privacy-link:hover {
    text-decoration: underline;
}

/* Actions */
.dcc-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.dcc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.dcc-btn-primary {
    background: linear-gradient(135deg, var(--dcc-primary) 0%, #c44569 100%);
    color: #fff;
}

.dcc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.dcc-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dcc-light .dcc-btn-secondary {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

.dcc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dcc-light .dcc-btn-secondary:hover {
    background: #eee;
}

.dcc-btn-link {
    background: transparent;
    color: inherit;
    padding: 12px 16px;
    opacity: 0.8;
}

.dcc-btn-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Preferences Panel */
.dcc-preferences {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
}

.dcc-pref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dcc-pref-header h4 {
    margin: 0;
    font-size: 16px;
}

.dcc-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    padding: 0;
    line-height: 1;
}

.dcc-close:hover {
    opacity: 1;
}

.dcc-pref-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dcc-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.dcc-pref-item:last-child {
    border-bottom: none;
}

.dcc-pref-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dcc-pref-name {
    font-weight: 600;
    font-size: 14px;
}

.dcc-pref-desc {
    font-size: 12px;
}

/* Switch Toggle */
.dcc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.dcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dcc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.dcc-light .dcc-slider {
    background-color: #ccc;
}

.dcc-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.dcc-switch input:checked + .dcc-slider {
    background: linear-gradient(135deg, var(--dcc-primary) 0%, #c44569 100%);
}

.dcc-switch input:checked + .dcc-slider:before {
    transform: translateX(22px);
}

.dcc-switch.dcc-disabled {
    opacity: 0.6;
}

.dcc-switch.dcc-disabled .dcc-slider {
    cursor: not-allowed;
}

.dcc-pref-actions {
    margin-top: 20px;
    text-align: right;
}

/* Floating Button */
.dcc-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dcc-primary) 0%, #c44569 100%);
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999998;
    transition: all 0.3s ease;
}

.dcc-floating-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dcc-container {
        padding: 20px;
    }
    
    .dcc-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .dcc-text {
        text-align: center;
    }
    
    .dcc-title {
        font-size: 16px;
    }
    
    .dcc-description {
        font-size: 13px;
    }
    
    .dcc-actions {
        flex-direction: column;
    }
    
    .dcc-btn {
        width: 100%;
        text-align: center;
    }
    
    .dcc-preferences {
        padding: 15px;
    }
    
    .dcc-pref-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dcc-switch {
        align-self: flex-end;
    }
}
