/**
 * Premium Page Styles
 * Tam çalışan sürüm - API plan yapısı
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1e 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.5;
}

/* Container */
.premium-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    min-height: 100vh;
    position: relative;
}

/* ================================================
   HEADER - Notifications Style
   ================================================ */

.premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: -20px -20px 0 -20px;
    width: calc(100% + 40px);
}

.premium-header h1,
.premium-header .page-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: white;
}

.premium-header .page-title .icon {
    font-size: 1.5rem;
}

.premium-header .subtitle {
    display: none;
}

.header-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    padding: 1rem 0;
    margin: 0;
}

.header-spacer {
    width: 40px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    padding: 0;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.back-icon {
    line-height: 1;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.status-card.premium-active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.3);
}

.status-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.status-dates {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.status-remaining {
    color: #FFD700;
    font-weight: 600;
}

/* Section Titles */
.features-section h2,
.plans-section h2,
.summary-section h2,
.payment-section h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Features List */
.features-section {
    margin-bottom: 25px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.feature-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: white;
}

.feature-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Plans Section */
.plans-section {
    margin-bottom: 25px;
}

.plans-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Plan Card - payment.html benzeri */
.plan-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.plan-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

/* Best Value Badge */
.best-value-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Plan Icon */
.plan-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Plan Info */
.plan-info {
    text-align: center;
}

.plan-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.plan-duration {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* Plan Price Container */
.plan-price-container {
    margin: 8px 0;
}

.plan-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
    line-height: 1.2;
}

.plan-monthly {
    font-size: 0.7rem;
    color: #4ade80;
    margin-top: 4px;
    font-weight: 500;
}

/* Select Button */
.select-plan-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    width: 100%;
}

.select-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.plan-card.selected .select-plan-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Summary Section */
.summary-section {
    margin-bottom: 25px;
}

.summary-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: none;
}

.summary-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.summary-row.total .summary-value {
    color: #FFD700;
    font-size: 1.15rem;
}

/* Payment Section */
.payment-section {
    margin-bottom: 30px;
}

.security-note {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.stripe-element {
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.stripe-element:focus-within {
    border-color: #667eea;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

/* Pay Button */
.pay-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Payment Footer */
.payment-footer {
    margin-top: 20px;
    text-align: center;
}

.secure-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.secure-badges img {
    height: 20px;
    opacity: 0.7;
}

.secure-badges .badge {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 6px;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.success-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.success-card h2 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-card p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.premium-info {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.info-row span {
    color: rgba(255,255,255,0.6);
}

.info-row strong {
    color: #FFD700;
}

.continue-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 380px) {
    .plans-list {
        grid-template-columns: 1fr;
    }
    
    .premium-container {
        padding: 15px;
        padding-top: 65px;
    }
    
    .plan-card {
        padding: 16px 12px;
    }
}