/**
 * SGD Üye Sistemi - Styles
 * Modal ve frontend stilleri
 */

/* === MODAL OVERLAY === */
.sgd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.sgd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: sgdFadeIn 0.3s ease;
}

.sgd-modal-content {
    position: relative;
    max-width: 480px;
    margin: 100px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: sgdSlideIn 0.3s ease;
    z-index: 2;
}

/* Body scroll kilidi */
body.sgd-modal-open {
    overflow: hidden;
}

/* === MODAL İÇERİK === */
.sgd-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sgd-modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.sgd-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
    animation: sgdIconPulse 2s infinite;
}

.sgd-modal-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sgd-modal-description {
    text-align: center;
    color: #666;
    margin: 0 0 30px 0;
    font-size: 15px;
}

/* === FORM === */
.sgd-form-group {
    margin-bottom: 20px;
}

.sgd-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.sgd-form-group input[type="password"],
.sgd-form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sgd-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* === SUBMIT BUTTON === */
.sgd-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.sgd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.sgd-submit-btn:active {
    transform: translateY(0);
}

.sgd-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* === MESAJLAR === */
.sgd-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.sgd-form-message:not(:empty) {
    display: block;
}

.sgd-form-message.sgd-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sgd-form-message.sgd-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === FOOTER === */
.sgd-modal-footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.sgd-modal-footer small {
    color: #999;
    font-size: 13px;
}

/* === KİLİTLİ İÇERİK BADGE === */
.sgd-member-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Post card'da kilit ikonu */
.sgd-lock-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Kilitli içerik hover efekti */
.sgd-member-locked {
    cursor: pointer;
    position: relative;
}

.sgd-member-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sgd-member-locked:hover::after {
    opacity: 1;
}

/* === HEADER BUTONLAR === */
.sgd-member-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgd-login-btn,
.sgd-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sgd-login-btn:hover,
.sgd-logout-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sgd-member-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sgd-member-indicator .remaining-time {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

/* === ANİMASYONLAR === */
@keyframes sgdFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sgdSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sgdIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === MOBİL RESPONSIVE === */
@media (max-width: 768px) {
    .sgd-modal-content {
        margin: 50px 20px;
        padding: 30px 25px;
    }

    .sgd-modal-icon {
        font-size: 48px;
    }

    .sgd-modal-title {
        font-size: 24px;
    }

    .sgd-modal-description {
        font-size: 14px;
    }

    /* Mobilde üye durumunu gizle, sadece menü açıkken göster */
    .header-right {
        position: relative;
    }

    .sgd-member-status {
        display: none !important;
    }

    /* Menü açıkken üye durumunu menünün içinde göster */
    .sgd-member-status.active {
        display: flex !important;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 8px;
        flex-direction: column;
        border-top: 2px solid #667eea;
    }

    .sgd-login-btn,
    .sgd-logout-btn,
    .sgd-member-indicator {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .sgd-modal-content {
        margin: 30px 15px;
        padding: 25px 20px;
    }

    .sgd-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* === BULANIKLAŞTIRMA EFEKTİ === */
.sgd-blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* === İÇERİK OVERLAY === */
.sgd-content-overlay {
    position: relative;
}

.sgd-content-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.95) 40%);
    z-index: 1;
}

.sgd-unlock-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.sgd-unlock-prompt h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.sgd-unlock-prompt button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sgd-unlock-prompt button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
