/* =========================================
   PLUGINHUB PRO - COOKIE CONSENT STYLES
   ========================================= */

/* Base Container */
.ph-cookie-consent {
    position: fixed;
    z-index: 9;
    background: var(--ph-bg-card);
    border: 1px solid var(--ph-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    visibility: hidden;
    /* Font ayarları */
    font-family: inherit;
    box-sizing: border-box;
}

.ph-cookie-consent.active {
    opacity: 1;
    visibility: visible;
}

/* --- INNER LAYOUT (Common) --- */
.ph-cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- ICON STYLES --- */
.ph-cookie-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: var(--ph-accent);
}

/* 1. Font Awesome (i tagı) için kurallar */
.ph-cookie-icon i {
    font-size: 24px;
    line-height: 1;
    width: auto;
    height: auto;
    display: inline-block;
}

/* 2. SVG İkonlar için kurallar */
.ph-cookie-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    line-height: 1;
    fill: currentColor;
}

/* --- TEXT CONTENT --- */
.ph-cookie-content {
    flex: 1;
    font-size: 14px;
    color: var(--ph-text-main);
    line-height: 1.6;
}

.ph-cookie-content p {
    margin: 0;
}

.ph-cookie-content a {
    color: var(--ph-accent);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.ph-cookie-content a:hover {
    color: var(--ph-text-muted);
    text-decoration: none;
}

/* --- ACTIONS (Buttons) --- */
.ph-cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- POSITIONS & LAYOUT VARIANTS --- */

/* 1. BOTTOM BAR (Desktop: Content Width) */
.ph-cookie-bottom-bar {
    bottom: 20px;
    left: 50%;
    width: 94%; 
    max-width: 1140px; 
    transform: translateX(-50%) translateY(40px);
    border-radius: 16px;
}

.ph-cookie-bottom-bar.active {
    transform: translateX(-50%) translateY(0);
}

/* 2. FLOATING BOXES (Left & Right) */
.ph-cookie-floating-left,
.ph-cookie-floating-right {
    width: 340px;
    max-width: 90%;
    border-radius: 16px;
    bottom: 30px;
    transform: translateY(20px);
}

.ph-cookie-floating-left { left: 30px; }
.ph-cookie-floating-right { right: 30px; }

.ph-cookie-floating-left.active,
.ph-cookie-floating-right.active {
    transform: translateY(0);
}

/* Floating Box İçin Dikey Yerleşim Kuralları (Desktop) */
.ph-cookie-floating-left .ph-cookie-inner,
.ph-cookie-floating-right .ph-cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
}

.ph-cookie-floating-left .ph-cookie-actions,
.ph-cookie-floating-right .ph-cookie-actions {
    width: 100%;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* --- BUTTONS --- */
.ph-btn-cookie {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ph-btn-cookie-primary {
    background: var(--ph-accent) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.ph-btn-cookie-outline {
    background: #db3336 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(219, 51, 54, 0.3) !important;
}

.ph-btn-cookie-primary:hover,
.ph-btn-cookie-outline:hover {
    background: var(--ph-bg-hover) !important;
    color: var(--ph-text-muted) !important;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1) !important;
    transform: translateY(0);
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 768px) {
    /* Tüm pozisyonları mobilde standartlaştır */
    .ph-cookie-bottom-bar,
    .ph-cookie-floating-left,
    .ph-cookie-floating-right {
        width: auto;
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
        border-radius: 16px;
        transform: translateY(150%);
        border: 1px solid var(--ph-border);
    }
    
    .ph-cookie-bottom-bar.active,
    .ph-cookie-floating-left.active,
    .ph-cookie-floating-right.active {
        transform: translateY(0);
    }

    /* İçerik Düzeni: Dikey Yığın */
    .ph-cookie-inner,
    .ph-cookie-bottom-bar .ph-cookie-inner,
    .ph-cookie-floating-left .ph-cookie-inner,
    .ph-cookie-floating-right .ph-cookie-inner {
        flex-direction: column;
        align-items: center; /* Ortala */
        text-align: center;  /* Metni Ortala */
        gap: 16px;
    }
    
    /* İkon Boyutu (Mobilde vurgulu olsun) */
    .ph-cookie-icon i, 
    .ph-cookie-icon svg {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }

    /* Buton Alanı: Alt Alta */
    .ph-cookie-actions,
    .ph-cookie-bottom-bar .ph-cookie-actions,
    .ph-cookie-floating-left .ph-cookie-actions,
    .ph-cookie-floating-right .ph-cookie-actions {
        width: 100%;
        display: flex;
        flex-direction: column; /* Alt alta diz */
        gap: 10px;
    }

    /* Butonlar: Tam Genişlik */
    .ph-btn-cookie {
        width: 100%;
    }
}