/**
 * Frontend CSS Styles
 * File: assets/css/frontend.css
 */

/* Cookie Banner */
.gcc-cookie-banner {
    position: fixed;
   
    box-shadow: 0 5px 26px 0px rgba(0, 0, 0, 0.22), 0 20px 28px 0px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    padding: 20px;
    animation: gcc-slide-in 0.3s ease-out;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide banner when modal is open */
.gcc-cookie-banner.gcc-modal-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Position Variants */
.gcc-cookie-banner.gcc-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.gcc-cookie-banner.gcc-position-top {
    top: 0;
    left: 0;
    right: 0;
}

.gcc-cookie-banner.gcc-position-left {
    left: 20px;
    bottom: 20px;
    max-width: 500px;
    border-radius: 8px;
}

.gcc-cookie-banner.gcc-position-right {
    right: 20px;
    bottom: 20px;
    max-width: 500px;
    border-radius: 8px;
}

/* Theme Variants */
.gcc-cookie-banner.gcc-theme-dark {
    background: #2c3e50;
    color: #ecf0f1;
}

.gcc-cookie-banner.gcc-theme-dark .gcc-banner-title {
    color: #fff;
}

.gcc-cookie-banner.gcc-theme-custom {
    /* Custom theme inherits from site styles */
}

/* Banner Content */
.gcc-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.gcc-banner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.gcc-banner-logo {
    flex-shrink: 0;
}

.gcc-banner-logo img {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.gcc-banner-title {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.gcc-banner-description{
    margin: 0 0 20px 0 ;
    line-height: 1.3;
    font-size: 14px !important;
    max-width: 440px;
    padding-bottom: 0;
}
.gcc-category-info div{
    line-height: 1.2;
}
.gcc-cookie-info{
    line-height: 1;
}
/* Banner Category Toggles */
.gcc-banner-categories {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.gcc-banner-category {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    
}

.gcc-category-name {
    white-space: nowrap;
    color: inherit;
}

.gcc-toggle-small {
    transform: scale(0.8);
    margin-left: 4px;
}

.gcc-toggle-small .gcc-toggle-slider {
    width: 32px;
    height: 18px;
}

.gcc-toggle-small .gcc-toggle-slider:before {
    width: 14px;
    height: 14px;
    left: 2px;
    bottom: 1px;
}
@media (min-width: 600px) {
    .gcc-toggle-small .gcc-toggle-slider {
        width: 41px;
        height: 20px;
    }
}

.gcc-toggle-small input:checked + .gcc-toggle-slider:before {
    transform: translateX(14px);
}

/* Buttons */
.gcc-banner-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
#gcc-cookie-banner
.gcc-btn, #gcc-personalize-modal .gcc-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px !important;
    transition: all 0.2s;
}


.gcc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
   
}


.gcc-btn-accept:hover , .gcc-btn-deny:hover, .gcc-btn-personalize:hover {
    transform: scale(1.02);

}

/* Privacy Link */
.gcc-privacy-link {
    margin-top: 15px;
    font-size: 12px;
    text-align: left;
}

.gcc-privacy-link a {
    text-decoration: underline !important;
    
}

/* Modal */
.gcc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 9999999;
    overflow-y: auto;
    animation: gcc-fade-in 0.2s ease-out;
}

.gcc-modal-content {
    background: #fff;
    max-width: 625px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: gcc-slide-down 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}


.gcc-modal-header {
    padding: 20px;
 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gcc-modal-header h3 {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 600;
}

.gcc-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.gcc-modal-close:hover {
    color: #333;
}

.gcc-modal-body {
    padding: 20px 20px 0px 20px;
}

.gcc-modal-description {
    margin-bottom: 20px;

    font-size: 14px !important;
}

.gcc-modal-footer {
    padding: 20px;
    
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Categories Accordion */
.gcc-categories-accordion {
    overflow: auto;
    max-height: 80vh;
}

.gcc-category-item {
    margin-bottom: 12px;
    border-radius: 4px;
}
.gcc-category-item:last-child{
    margin-bottom: 0px;
}

.gcc-category-item:last-child {
    border-bottom: none;
}

.gcc-category-header {
    padding: 12px;
    /* background: #f9f9f9; */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.gcc-category-info{
    max-width: 450px;
}

.gcc-category-info h4 {
    margin: 0;
    font-size: 14px;
    display: inline-block;
    font-weight: 600 !important;
    line-height: 1.2;
}

.gcc-cookie-count {
    margin-left: 10px;
    font-size: 12px;
}

.gcc-category-content {
    padding: 0px;
    
}
#gcc-personalize-modal p{
 
    padding-bottom: 0;
}
.gcc-category-header .gcc-category-description {
  
display: none;
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin-bottom: 0;
    padding-bottom: 0;
  
}

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

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

.gcc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.gcc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}



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

.gcc-toggle-switch input:disabled + .gcc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.gcc-toggle-small {
    width: 40px;
    height: 20px;
}

.gcc-toggle-small .gcc-toggle-slider:before {
    height: 14px;
    width: 14px;
}

.gcc-toggle-small input:checked + .gcc-toggle-slider:before {
    transform: translateX(13px);
}
.gcc-categories-accordion
.gcc-toggle-small input:checked + .gcc-toggle-slider:before {
    transform: translateX(12px);
}
.gcc-banner-category
.gcc-toggle-small input:checked + .gcc-toggle-slider:before {
    transform: translateX(21px);
}

/* Cookies List with Accordion */
.gcc-cookies-list {
    margin-top: 15px;
}

.gcc-cookie-item { 
    border-radius: 0px;
    margin-bottom: 10px;
    overflow: hidden;
}

.gcc-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gcc-cookie-header:hover {
    background-color: #f5f5f5;
}

.gcc-cookie-header.gcc-cookie-accordion-toggle {
    cursor: pointer;
}

.gcc-cookie-info {
    flex: 1;
}

.gcc-cookie-info strong {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.gcc-cookie-provider {
    font-size: 12px;
}

.gcc-categories-accordion
.gcc-cookie-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 62px;
}

.gcc-accordion-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    user-select: none;
}

.gcc-cookie-item.gcc-accordion-open .gcc-accordion-icon {
    transform: rotate(180deg);
}

.gcc-modal-body .gcc-accordion-icon.gcc-accordion-open {
    transform: rotate(180deg);
}

.gcc-cookie-details {
    display: none;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}

.gcc-cookie-item.gcc-accordion-open .gcc-cookie-details {
    display: block;
}

.gcc-cookie-details p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
    
}

.gcc-cookie-duration {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Settings Trigger */
.gcc-settings-trigger {
    position: fixed;
    z-index: 999998;
    animation: gcc-fade-in 0.3s ease-out;
}

.gcc-settings-trigger.gcc-position-bottom,
.gcc-settings-trigger.gcc-position-top {
    left: 20px;
    bottom: 20px;
}

.gcc-settings-trigger.gcc-position-left {
    left: 20px;
    bottom: 20px;
}

.gcc-settings-trigger.gcc-position-right {
    right: 20px;
    bottom: 20px;
}

.gcc-settings-btn {

    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gcc-settings-btn svg{
    max-width: 35px;
}
.gcc-settings-btn:hover {
 
    transform: scale(1.1);
}

.gcc-settings-trigger.gcc-pulse .gcc-settings-btn {
    animation: gcc-pulse 1s ease-in-out;
}
@media (min-width: 768px) {
    .gcc-categories-accordion .gcc-toggle-small input:checked + .gcc-toggle-slider:before {
        transform: translateX(20px);
    }
    .gcc-toggle-small .gcc-toggle-slider:before {
    
        bottom: 2px;
    }
}

@media (min-width: 1024px) {
    #gcc-cookie-banner  .gcc-banner-buttons .gcc-btn, #gcc-personalize-modal  .gcc-banner-buttons .gcc-btn 
    .gcc-btn {
        padding: 12px 16px;  
    }
    .gcc-banner-categories{
        gap: 15px;
    }
    .gcc-banner-buttons{
        gap: 15px;
    }

.gcc-category-header .gcc-category-description {
  
    display: block;
      
      
    }
}
/* Animations */
@keyframes gcc-slide-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes gcc-slide-down {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gcc-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gcc-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Custom Trigger Elements */
.gcc-trigger {
    cursor: pointer;
    transition: all 0.2s ease;
}

.gcc-trigger:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Custom trigger button styling */
.gcc-trigger.gcc-trigger-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gcc-trigger.gcc-trigger-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Custom trigger link styling */
.gcc-trigger.gcc-trigger-link {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.gcc-trigger.gcc-trigger-link:hover {
    color: #2980b9;
}

/* Documentation styling */
.gcc-documentation {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.gcc-documentation h3 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.gcc-documentation p {
    margin: 10px 0;
    line-height: 1.6;
}

.gcc-documentation pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.gcc-documentation code {
    background: #34495e;
    color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .gcc-cookie-banner.gcc-position-left,
    .gcc-cookie-banner.gcc-position-right {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .gcc-banner-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .gcc-banner-logo img {
        max-width: 80px;
        max-height: 50px;
    }
    
    .gcc-banner-categories {
        flex-direction: column;
        gap: 10px;
    }
    
    .gcc-banner-category {
        width: 100%;
        justify-content: space-between;
    }
    
    .gcc-banner-buttons {
        flex-direction: column;
    }
    
    .gcc-btn {
        width: 100%;
        text-align: center;
    }
    
    .gcc-modal-content {
        margin: 20px;
    }
    
    .gcc-modal-footer {
        flex-direction: column;
    }
    
    .gcc-modal-footer .gcc-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gcc-cookie-banner.gcc-position-left,
    .gcc-cookie-banner.gcc-position-right {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px 8px 0 0;

    }
    .gcc-banner-categories {
        flex-direction: row;}
        .gcc-banner-category {
            width: auto;
        }
        .gcc-cookie-banner .gcc-toggle-small .gcc-toggle-slider {
            height: 24px;
            width: 48px;
        }
        .gcc-cookie-banner
        .gcc-toggle-small .gcc-toggle-slider:before {
            height: 16px;
            width: 16px;
            left: 5px;
            bottom: 3px;
        }
        .gcc-cookie-banner
        .gcc-toggle-small{
            margin-left: 0px;
        }
}

@media (min-width: 900px) {
    .gcc-modal-footer
    .gcc-btn {
        padding: 14px 18px;
    }
}

/* themes */

/* light */

.gcc-theme-light .gcc-btn {
    background: #030712;
    color: #fff;
}

.gcc-theme-light.gcc-cookie-banner {
    background: #fff;
}

.gcc-theme-light .gcc-banner-description,
.gcc-theme-light .gcc-banner-title,
.gcc-theme-light .gcc-privacy-link a {
    color: #030712;
}

.gcc-theme-light
.gcc-toggle-switch input:checked + .gcc-toggle-slider {
    background-color: #030712;
}

.gcc-theme-light
.gcc-category-item {
    border: 1px solid #e5e5e5;
}

.gcc-theme-light
.gcc-category-header:hover {
    background: #f8f9fa;
}

.gcc-modal.gcc-theme-light .gcc-modal-content {
    background: #fff;
    color: #030712;
}

.gcc-theme-light
.gcc-modal-description {
    color: #030712;
    line-height: 1.2 !important;
}

.gcc-theme-light
.gcc-toggle-slider {
    background-color: #e5e5e5;
    border: 1px solid #d1d5db;
}

.gcc-theme-light
.gcc-toggle-slider:before {
    background-color: #030712;
}

.gcc-theme-light .gcc-toggle-switch input:checked + .gcc-toggle-slider::before {
    background-color: #fff;
}

.gcc-theme-light .gcc-settings-btn {
    background: #000;
    color: #fff;
}

.gcc-theme-light 
.gcc-category-content .gcc-category-description {
    color: #030712;
}

.gcc-theme-light 
.gcc-cookie-header:hover {
    background: #f1f5f9;
}

.gcc-theme-light 
.gcc-modal-header {
    border-bottom: 1px solid #e5e5e5;
}

/* dark */

/* custom */
.gcc-theme-dark{
    
}


.gcc-theme-dark  .gcc-btn{
    background: #fff;
    color: #030712;

}

.gcc-theme-dark.gcc-cookie-banner {
    background: #030712;
 
}

.gcc-theme-dark .gcc-banner-description,
.gcc-theme-dark .gcc-banner-title,
.gcc-theme-dark .gcc-privacy-link a{
    color: #fff ;
}

.gcc-theme-dark
.gcc-toggle-switch input:checked + .gcc-toggle-slider {
    background-color: #fff;
}

.gcc-theme-dark
.gcc-category-item{
    border: 1px solid #313131;
    
}

.gcc-theme-dark
.gcc-category-header:hover {
    background: #030712;
}

.gcc-modal.gcc-theme-dark .gcc-modal-content {
    background: #030712;
    color: #ecf0f1;
}
.gcc-theme-dark
.gcc-modal-description{
    color: #fff;
}
.gcc-theme-dark
.gcc-toggle-slider{
    background-color: #5e5e5e;
    border: 1px solid #313131;
}
.gcc-theme-dark
.gcc-toggle-slider:before{
    background-color: #ffffff;

}
.gcc-theme-dark .gcc-toggle-switch input:checked + .gcc-toggle-slider::before{
    background-color: #030712;
}

.gcc-theme-dark .gcc-settings-btn {
    background: #030712;
    color: #fff;
}
.gcc-theme-dark 
.gcc-category-content .gcc-category-description {
    color: #fff;
}
.gcc-theme-dark 
.gcc-cookie-header:hover{
    background: #2c2c2c;
}
.gcc-theme-dark 
.gcc-modal-header {
    border-bottom: 1px solid #313131;
}
#gcc-personalize-modal{
    justify-content: center;
    align-items: center;
}
#gcc-cookie-banner
.gcc-banner-categories{
    display: none;
}