/* =====================================================
   FOREM ATÖLYE - Layout Components CSS
   Performans için harici dosyaya taşındı
   ===================================================== */

/* =====================================================
   CART DROPDOWN STYLES
   ===================================================== */
.cart-dropdown-container {
    position: relative;
    display: inline-block;
}

.cart-dropdown-container .cart-icon-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 10px; /* Dropdown'a geçiş için boşluk */
    margin-bottom: -10px;
}

/* Header Icons - Yatay düzen */
.header-icons > a,
.header-icons .cart-dropdown-container .cart-icon-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.cart-dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 5px;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Dropdown ile link arasında köprü oluştur */
.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.cart-dropdown-container:hover .cart-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

.cart-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-dropdown-empty {
    padding: 30px;
    text-align: center;
    color: #999;
}

.cart-dropdown-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.cart-dropdown-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
    align-items: center;
}

.cart-dropdown-item:hover {
    background: #fafafa;
}

.cart-dropdown-item-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #f27a1a;
}

.cart-dropdown-item-qty {
    font-size: 12px;
    color: #666;
}

.cart-dropdown-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-dropdown-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.cart-dropdown-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.view-cart-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f27a1a;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.view-cart-btn:hover {
    background: #e06a0a;
    color: #fff;
}

@media (max-width: 768px) {
    .cart-dropdown {
        display: none !important;
    }
}

/* =====================================================
   COOKIE CONSENT BANNER STYLES
   ===================================================== */
.forem-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0f1d32 100%);
    color: white;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}

.forem-cookie-consent.show {
    transform: translateY(0);
}

.forem-cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forem-cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 300px;
}

.forem-cookie-consent-icon {
    font-size: 2.5rem;
    color: #ff6c00;
}

.forem-cookie-consent-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.forem-cookie-consent-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
}

.forem-cookie-consent-text a {
    color: #ff6c00;
    text-decoration: underline;
}

.forem-cookie-consent-text a:hover {
    color: #ff9500;
}

.forem-cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forem-cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forem-cookie-btn-accept {
    background: linear-gradient(135deg, #ff6c00, #ff9500);
    color: white;
}

.forem-cookie-btn-accept:hover {
    background: linear-gradient(135deg, #ff9500, #ff6c00);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 108, 0, 0.3);
}

.forem-cookie-btn-reject {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.forem-cookie-btn-reject:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.forem-cookie-btn-settings {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.forem-cookie-btn-settings:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* =====================================================
   COOKIE SETTINGS MODAL
   ===================================================== */
.forem-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.forem-cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.forem-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,13,26,0.8);
}

.forem-cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.forem-cookie-modal.show .forem-cookie-modal-content {
    transform: scale(1);
}

.forem-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #0a1628 0%, #0f1d32 100%);
}

.forem-cookie-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.forem-cookie-modal-header h3 i {
    color: #ff6c00;
}

.forem-cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.forem-cookie-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.forem-cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.forem-cookie-modal-intro {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.forem-cookie-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.forem-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.forem-cookie-category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forem-cookie-category-info h4 i {
    color: #ff6c00;
}

.forem-cookie-category-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.forem-cookie-toggle {
    flex-shrink: 0;
}

.forem-cookie-toggle.disabled label {
    color: #94a3b8;
    font-size: 0.8rem;
}

.forem-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s;
}

.forem-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.forem-cookie-toggle input:checked + .forem-toggle-switch {
    background: #ff6c00;
}

.forem-cookie-toggle input:checked + .forem-toggle-switch::after {
    transform: translateX(24px);
}

.forem-cookie-toggle input {
    display: none;
}

.forem-cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .forem-cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    .forem-cookie-consent-content {
        flex-direction: column;
        align-items: center;
    }
    .forem-cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
    .forem-cookie-btn {
        flex: 1;
        justify-content: center;
    }
}
