/**
 * Credits Store Styles - Character-Driven Experience
 */

/* Comic Strip Image URLs - All from appointmentkeeper.co.uk */
:root {
    --hand-phone: url('https://appointmentkeeper.co.uk/wp-content/uploads/2026/03/Hand-Centre-Image.png');
    --noir-money: url('https://appointmentkeeper.co.uk/wp-content/uploads/2026/03/2nd-Noir-storys-Money-and-Bills.fw_.png');
    --noir-business: url('https://appointmentkeeper.co.uk/wp-content/uploads/2026/03/4th-Noir-Storys-Busness-and-Work.fw_.png');
}

/* Hide WordPress default page title */
.page-template-default .entry-title,
body.page .hentry .entry-title {
    display: none !important;
}

.ak-store-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page Header */
.ak-store-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.ak-store-header::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background: var(--noir-money);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.ak-store-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: white;
}

.ak-store-header p {
    margin: 0;
    opacity: 0.9;
    color: white;
}

/* Credit Balance Summary */
.ak-balance-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ak-balance-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid #e0e0e0;
}

.ak-balance-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ak-balance-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0066cc;
    display: block;
}

.ak-balance-label {
    color: #666;
    font-size: 0.9rem;
}

/* Section Title with Icon - Speech Bubble Style */
.ak-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50px;
    position: relative;
}

/* Speech bubble tail */
.ak-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #bbdefb;
}

.ak-section-title h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #1565c0;
}

.ak-section-icon {
    font-size: 1.8rem;
}

/* Helper Addon Banner */
.ak-helper-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 30px;
    margin-left: auto;
}

.ak-helper-banner-icon {
    width: 40px;
    height: 40px;
    background: var(--helper-thumbsup);
    background-size: contain;
    background-repeat: no-repeat;
}

.ak-helper-banner-text {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Credit Packs Grid */
.ak-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* SMS Credit Card - with Comic Background */
.ak-credit-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 2px solid #e8e8e8;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ak-credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    border-color: #0066cc;
}

/* Comic background for SMS cards */
.ak-credit-card.ak-sms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--noir-money);
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

/* Phone hand background for Call cards */
.ak-credit-card.ak-call-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hand-phone);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.ak-credit-card * {
    position: relative;
    z-index: 1;
}

/* Best Value Badge */
.ak-best-value {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ak-pack-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 5px;
}

.ak-pack-type {
    font-size: 1.1rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 15px;
}

.ak-pack-price {
    font-size: 2rem;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 5px;
}

.ak-pack-rate {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.ak-buy-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.ak-buy-btn:hover {
    background: linear-gradient(135deg, #0077ee 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
    color: white;
}

/* Helper Section */
.ak-helper-section {
    background: linear-gradient(145deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.ak-helper-section::before {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: var(--noir-business);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.ak-helper-image {
    width: 100px;
    height: 100px;
    background: var(--hand-phone);
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.ak-helper-content h3 {
    margin: 0 0 10px 0;
    color: #e65100;
    font-size: 1.3rem;
}

.ak-helper-content p {
    margin: 0;
    color: #5d4e37;
}

.ak-helper-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ak-helper-feature {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #5d4e37;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Back to Dashboard Link */
.ak-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

.ak-back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ak-store-page {
        padding: 10px 15px;
    }
    
    .ak-store-header {
        padding: 25px 20px;
    }
    
    .ak-store-header h1 {
        font-size: 1.6rem;
    }
    
    .ak-balance-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .ak-balance-card {
        width: 100%;
        max-width: 300px;
    }
    
    .ak-section-title {
        flex-wrap: wrap;
    }
    
    .ak-helper-banner {
        margin: 10px 0 0 0;
        width: 100%;
        justify-content: center;
    }
    
    .ak-helper-section {
        flex-direction: column;
        text-align: center;
    }
}
