/* ====================================================
   Akademi Token Auth — İçerik Kilidi & Kullanıcı Menüsü
   ==================================================== */

/* ===== İÇERİK KİLİDİ ===== */

.ata-content-lock {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    margin: 20px 0;
}

.ata-lock-blur-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 16px;
}

.ata-lock-blur-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.1);
}

.ata-lock-abstract-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ata-popup-bg, #0f0c29) 0%, #302b63 50%, #24243e 100%);
}

.ata-lock-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.ata-lock-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: ata-lock-appear 0.4s ease;
}

@keyframes ata-lock-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ata-lock-logo {
    margin-bottom: 20px;
}

.ata-lock-logo img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
}

.ata-lock-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.3), rgba(124, 58, 237, 0.3));
    border: 2px solid rgba(74, 108, 247, 0.5);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: ata-pulse-lock 3s ease-in-out infinite;
}

@keyframes ata-pulse-lock {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(74, 108, 247, 0); }
}

.ata-lock-svg {
    width: 32px;
    height: 32px;
    color: #4a6cf7;
}

.ata-lock-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.3 !important;
    border: none !important;
    padding: 0 !important;
    letter-spacing: -0.3px;
}

.ata-lock-body {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ata-lock-body a {
    color: #4a6cf7;
    text-decoration: underline;
}

.ata-lock-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ata-lock-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4);
}

.ata-lock-login-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ata-lock-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.6);
    color: #fff !important;
}

.ata-lock-member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s;
}

.ata-lock-member-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ata-lock-member-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
    transform: translateY(-1px);
}

.ata-lock-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.ata-lock-footer svg {
    width: 13px;
    height: 13px;
}

/* ===== KULLANICI MENÜSÜ (SHORTCODE) ===== */

.ata-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Giriş yapmamış */
.ata-header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4a6cf7, #7c3aed);
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s;
    box-shadow: 0 3px 12px rgba(74, 108, 247, 0.35);
    white-space: nowrap;
}

.ata-header-login-btn svg {
    width: 18px;
    height: 18px;
}

.ata-header-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.55);
    color: #fff !important;
}

/* Giriş yapmış */
.ata-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid rgba(74, 108, 247, 0.5);
    color: #4a6cf7;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.ata-profile-toggle:hover,
.ata-profile-toggle[aria-expanded="true"] {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}

.ata-profile-avatar svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ata-chevron {
    transition: transform 0.2s;
}

.ata-profile-toggle[aria-expanded="true"] .ata-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.ata-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0,0,0,0.05);
    min-width: 200px;
    padding: 8px;
    z-index: 99999;
    border: 1px solid #f1f5f9;
    animation: ata-dropdown-appear 0.15s ease;
}

.ata-profile-dropdown.ata-open {
    display: block;
}

@keyframes ata-dropdown-appear {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ata-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.ata-dropdown-header svg {
    width: 16px;
    height: 16px;
    color: #4a6cf7;
}

.ata-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.ata-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    text-align: left;
    text-decoration: none;
}

.ata-dropdown-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ata-logout-trigger {
    color: #ef4444;
}

.ata-logout-trigger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ===== ADMİN POPUP ÖNİZLEME ===== */

.ata-preview-popup {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f0c29, #302b63);
    border-radius: 12px;
}

.ata-lock-card-preview {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.ata-lock-preview-img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 16px;
}

.ata-lock-icon-preview {
    font-size: 40px;
    margin-bottom: 16px;
}

.ata-lock-card-preview h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.ata-lock-body-preview {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ata-preview-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: default;
}

.ata-preview-btn-primary {
    background: linear-gradient(135deg, #4a6cf7, #7c3aed);
    color: #fff;
}

.ata-preview-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 600px) {
    .ata-lock-card {
        padding: 32px 24px;
    }
    .ata-lock-title {
        font-size: 18px !important;
    }
}
