/**
 * Lisans & Ödeme Sayfası Stilleri
 * Orderly Restoran Yönetim Sistemi
 * Marka Kimliğine Uygun Tasarım
 */

/* ===== PAGE CONTAINER ===== */
.lisans-page {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.lisans-page .main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PAGE HEADER ===== */
.lisans-page .page-header {
    margin-bottom: 40px;
}

.lisans-page .page-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.lisans-page .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--siyah);
    margin: 0;
}

.lisans-page .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.lisans-page .breadcrumb-nav a {
    color: var(--gri);
    transition: var(--transition);
}

.lisans-page .breadcrumb-nav a:hover,
.lisans-page .breadcrumb-nav a.active {
    color: var(--anarenk);
}

.lisans-page .breadcrumb-nav i {
    color: var(--gri);
    font-size: 10px;
}

/* ===== LICENSE STATUS CARD ===== */
.license-status-section {
    margin-bottom: 50px;
}

.license-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.license-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.license-status-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.license-status-card.valid {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 20px 60px rgba(17, 153, 142, 0.4);
}

.license-status-card.expired {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 20px 60px rgba(255, 65, 108, 0.4);
}

.license-status-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.license-status-icon i {
    font-size: 50px;
}

.license-status-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.license-status-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.license-status-type {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 20px 0;
}

.license-remaining {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.license-remaining .remaining-days {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.license-remaining .remaining-text {
    font-size: 20px;
    opacity: 0.9;
}

.license-remaining.lifetime {
    align-items: center;
}

.license-remaining.lifetime i {
    font-size: 48px;
}

.license-expired-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.license-expired-info p {
    margin: 0;
    font-size: 16px;
}

.license-expired-info small {
    opacity: 0.8;
}

/* ===== PACKAGES SECTION ===== */
.packages-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--siyah);
    margin: 0 0 10px 0;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gri);
    text-align: center;
    margin: 0 0 40px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PACKAGE CARD ===== */
.package-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    text-align: center;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.package-card.yearly:hover {
    border-color: var(--anarenk);
}

.package-card.lifetime {
    border-color: #38ef7d;
    background: linear-gradient(180deg, rgba(56, 239, 125, 0.05) 0%, #fff 100%);
}

.package-card.lifetime:hover {
    border-color: #11998e;
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--anarenk);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-badge.premium {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.package-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.package-card.lifetime .package-icon {
    background: rgba(56, 239, 125, 0.15);
}

.package-icon i {
    font-size: 36px;
    color: var(--anarenk);
}

.package-card.lifetime .package-icon i {
    color: #11998e;
}

.package-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--siyah);
    margin: 0 0 20px 0;
}

.package-price {
    margin-bottom: 25px;
}

.package-price .price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--siyah);
    line-height: 1;
}

.package-price .price-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--anarenk);
    vertical-align: top;
}

.package-card.lifetime .price-currency {
    color: #11998e;
}

.package-price .price-period {
    display: block;
    font-size: 14px;
    color: var(--gri);
    margin-top: 5px;
}

/* Campaign Price */
.package-price.has-campaign .price-original {
    text-decoration: line-through;
    color: var(--gri);
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.package-price.has-campaign .price-amount {
    color: var(--danger-color);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.package-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--success-color);
    font-size: 18px;
    flex-shrink: 0;
}

.package-button {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--anarenk);
    color: #fff;
}

.package-button:hover {
    background: #e55a40;
    transform: scale(1.02);
}

.package-button.premium {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.package-button.premium:hover {
    background: linear-gradient(135deg, #0f8c82 0%, #30d66e 100%);
}

.package-button i {
    font-size: 20px;
}

/* ===== PAYMENT HISTORY ===== */
.payment-history-section {
    margin-bottom: 50px;
}

.payment-history-table {
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.payment-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history-table th,
.payment-history-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payment-history-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-history-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.payment-history-table tr:last-child td {
    border-bottom: none;
}

.payment-history-table tr:hover td {
    background: var(--bg-secondary);
}

.payment-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #c79100;
}

.payment-status.status-success {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.payment-status.status-failed {
    background: rgba(220, 53, 69, 0.15);
    color: #bd2130;
}

.payment-status.status-cancelled {
    background: rgba(108, 117, 125, 0.15);
    color: #545b62;
}

/* ===== INFO SECTION ===== */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 24px;
    color: var(--anarenk);
}

.info-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--siyah);
    margin: 0 0 8px 0;
}

.info-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== PAYMENT MODAL ===== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background: #fff;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.payment-modal.active .payment-modal-content {
    transform: scale(1) translateY(0);
}

.payment-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--siyah);
}

.payment-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.payment-modal-close:hover {
    background: var(--danger-color);
    color: #fff;
}

.payment-modal-close i {
    font-size: 20px;
}

.payment-modal-body {
    height: 600px;
    position: relative;
}

.payment-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.payment-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--anarenk);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-loading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

#paymentFrame {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lisans-page {
        padding: 20px 0;
    }
    
    .lisans-page .page-title {
        font-size: 22px;
    }
    
    .license-status-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .license-status-icon {
        width: 80px;
        height: 80px;
    }
    
    .license-status-icon i {
        font-size: 40px;
    }
    
    .license-status-title {
        font-size: 24px;
    }
    
    .license-remaining {
        justify-content: center;
    }
    
    .license-remaining .remaining-days {
        font-size: 42px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .package-card {
        padding: 30px 20px;
    }
    
    .package-price .price-amount {
        font-size: 40px;
    }
    
    .payment-history-table {
        overflow-x: auto;
    }
    
    .payment-history-table table {
        min-width: 500px;
    }
    
    .payment-modal-content {
        width: 95%;
        max-height: 80vh;
    }
    
    .payment-modal-body {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .lisans-page .page-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
}

/* ===== PURCHASED PACKAGE STYLES ===== */
.package-card.purchased {
    border: 2px solid var(--yesil, #28a745);
    position: relative;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.package-badge.purchased-badge {
    background: linear-gradient(135deg, var(--yesil, #28a745) 0%, #20c997 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-badge.purchased-badge i {
    font-size: 16px;
}

.package-button.purchased {
    background: var(--yesil, #28a745);
    color: #fff;
    cursor: default;
    opacity: 0.9;
}

.package-button.purchased:hover {
    transform: none;
    box-shadow: none;
}

.package-button.renew {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: #fff;
}

.package-button.renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.35);
}

.package-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.package-button:disabled:hover {
    transform: none;
    box-shadow: none;
}
