/* Golf Lesson Subscriptions Frontend Styles */

.gls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Plan Cards */
.gls-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.gls-plan-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gls-plan-card:hover {
    border-color: #0073aa;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gls-plan-card.gls-selected {
    border-color: #0073aa;
    background: #f8f9fa;
}

.gls-plan-card.gls-featured {
    border-color: #28a745;
    position: relative;
}

.gls-plan-card.gls-featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.gls-plan-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.gls-plan-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.gls-plan-price {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.gls-plan-price .gls-currency {
    font-size: 24px;
    vertical-align: top;
    margin-right: 2px;
}

.gls-plan-price .gls-per {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.gls-price-per-lesson {
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.gls-plan-price-period {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.gls-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.gls-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.gls-plan-features li:last-child {
    border-bottom: none;
}

.gls-plan-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* Package Cards */
.gls-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gls-package-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gls-package-card:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gls-package-card.gls-selected {
    border-color: #0073aa;
    background: #f8f9fa;
}

.gls-package-header h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.gls-package-price {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.gls-package-price .gls-currency {
    font-size: 20px;
    vertical-align: top;
    margin-right: 2px;
}

.gls-package-price .gls-per {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.gls-package-savings {
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gls-package-features {
    margin: 20px 0;
}

.gls-package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gls-package-features li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.gls-package-features li:last-child {
    border-bottom: none;
}

.gls-package-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.gls-package-action {
    margin: 20px 0;
}

.gls-package-note {
    margin-top: 15px;
}

.gls-package-note small {
    color: #666;
    font-style: italic;
}

.gls-comparison-note {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

.gls-comparison-note h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.gls-comparison-note p {
    margin: 0 0 20px 0;
    color: #666;
}

/* Forms */
.gls-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gls-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

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

.gls-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.gls-form-group input[type="text"],
.gls-form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.gls-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.gls-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.gls-card-element:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.gls-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.gls-submit-btn:hover {
    background: #005a87;
}

.gls-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.gls-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.gls-message.gls-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Subscription Management */
.gls-subscription-management {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gls-subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gls-info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.gls-info-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gls-info-card .gls-info-value {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.gls-info-card .gls-info-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Credit Balance Display */
.gls-credit-balance {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.gls-credit-balance h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.gls-credit-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gls-credit-description {
    opacity: 0.9;
    font-size: 14px;
}

/* Credit History */
.gls-credit-history {
    margin-top: 30px;
}

.gls-credit-history table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gls-credit-history th,
.gls-credit-history td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.gls-credit-history th {
    background: #f8f9fa;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.gls-credit-history tr:hover {
    background: #f8f9fa;
}

.gls-credit-positive {
    color: #28a745;
    font-weight: bold;
}

.gls-credit-negative {
    color: #dc3545;
    font-weight: bold;
}

/* Action Buttons */
.gls-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.gls-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.gls-btn-primary {
    background: #0073aa;
    color: white;
}

.gls-btn-primary:hover {
    background: #005a87;
    color: white;
}

.gls-btn-secondary {
    background: #6c757d;
    color: white;
}

.gls-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.gls-btn-danger {
    background: #dc3545;
    color: white;
}

.gls-btn-danger:hover {
    background: #c82333;
    color: white;
}

.gls-btn-outline {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.gls-btn-outline:hover {
    background: #0073aa;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gls-container {
        padding: 15px;
    }
    
    .gls-plans-grid,
    .gls-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gls-plan-card,
    .gls-package-card {
        padding: 20px;
    }
    
    .gls-plan-price {
        font-size: 36px;
    }
    
    .gls-subscription-info {
        grid-template-columns: 1fr;
    }
    
    .gls-actions {
        flex-direction: column;
    }
    
    .gls-btn {
        width: 100%;
    }
    
    .gls-credit-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .gls-form {
        padding: 20px;
    }
    
    .gls-subscription-management {
        padding: 20px;
    }
    
    .gls-credit-history {
        overflow-x: auto;
    }
    
    .gls-credit-history table {
        min-width: 500px;
    }
}

/* Loading States */
.gls-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gls-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: gls-spin 1s linear infinite;
}

@keyframes gls-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Indicators */
.gls-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gls-status-active {
    background: #d4edda;
    color: #155724;
}

.gls-status-canceled {
    background: #f8d7da;
    color: #721c24;
}

.gls-status-past_due {
    background: #fff3cd;
    color: #856404;
}

/* Tooltips */
.gls-tooltip {
    position: relative;
    cursor: help;
}

.gls-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.gls-tooltip:hover::after {
    opacity: 1;
}


/* Plan Change Styles */
.gls-plan-change {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.gls-plan-change h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.gls-plan-change .gls-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.gls-plan-change .gls-plan-card {
    position: relative;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gls-plan-change .gls-plan-card:hover {
    border-color: #0073aa;
}

.gls-plan-change .gls-plan-card.gls-current-plan {
    border-color: #28a745;
    background: #f8fff9;
}

.gls-plan-change .gls-plan-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
}

.gls-plan-change .gls-plan-card input[type="radio"]:disabled {
    opacity: 0.5;
}

.gls-plan-change .gls-plan-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.gls-plan-change .gls-plan-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.gls-plan-change .gls-plan-per-lesson {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.gls-current-plan-badge {
    position: absolute;
    top: -8px;
    left: 15px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
