/* Main Styles for 9Hits Point Shop */

/* Global Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-color: #6c757d;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f8ff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8c9eff 100%);
    color: white;
    padding: 5rem 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* User Points Info */
.user-points-info {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.user-points-info h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

/* Package Cards */
.package-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Insufficient funds styling */
.package-card.insufficient-funds {
    opacity: 0.75;
}

.package-card.insufficient-funds:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 53, 69, 0.1);
    z-index: 1;
    pointer-events: none;
}

.package-card .card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    border-bottom: none;
}

.package-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 15px 0;
    text-align: center;
}

/* Discount Styling */
.original-price {
    text-decoration: line-through;
    font-size: 1.6rem;
    color: var(--gray-color);
    font-weight: 400;
    margin-right: 5px;
}

.discount-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    vertical-align: middle;
    display: inline-block;
    margin-left: 5px;
}

.returning-customer-notice {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: var(--secondary-color);
    text-align: center;
}

.returning-customer-notice h4 {
    color: var(--success-color);
    margin-bottom: 5px;
}

.package-card .points {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.package-card .points-comparison {
    font-size: 0.9rem;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px !important;
}

.package-card .card-body {
    padding: 25px;
}

.package-card .card-text {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.package-card .btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Popular Package Highlight */
.package-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.package-card.popular .card-header {
    background-color: var(--accent-color);
}

.package-card.popular .popular-badge {
    position: absolute;
    top: 0;
    right: 15px;
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 700;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Points Upgrade Styling */
.package-card.points-upgrade {
    border: 2px solid var(--danger-color);
}

.package-card.points-upgrade .upgrade-badge {
    position: absolute;
    top: 0;
    left: 15px;
    background-color: var(--danger-color);
    color: white;
    font-weight: 700;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.package-card.points-upgrade .upgrade-badge i {
    margin-right: 3px;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: white;
    box-shadow: none !important;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.accordion-body {
    padding: 20px;
    color: var(--gray-color);
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-control {
    height: 50px;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.btn-submit {
    height: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

/* Payment Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.close {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .package-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .package-card {
        margin-bottom: 20px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Loading Spinner */
.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

/* Payment Method Icons */
.payment-methods {
    text-align: center;
    margin: 30px 0;
}

.payment-methods img {
    height: 30px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Available Points Styling */
#available-points-container {
    display: inline-block;
    position: relative;
}

#available-points-value {
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.points-updated {
    animation: pointsFlash 2s ease;
}

@keyframes pointsFlash {
    0% { color: var(--primary-color); }
    25% { color: var(--success-color); }
    100% { color: var(--primary-color); }
}
