/* Purchase Page Styles */
/* Based on download.css design system */

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

body {
    font-family: 'Avenir', 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

/* Hamburger Button */
#hamburger-button-container {
    position: fixed;
    top: 30px;
    right: 60px;
    z-index: 9999;
    cursor: pointer;
}

#hamburger-button-container svg {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

#hamburger-button-container:hover svg {
    fill: #f0f0f0;
}

/* Purchase Container */
.purchase-container {
    max-width: 1200px;
    margin: 80px auto 40px;
}

/* Header */
.purchase-header {
    text-align: center;
    margin-bottom: 60px;
}

.purchase-header h1 {
    font-size: 56px;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purchase-header h2 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: #cccccc;
}

.purchase-header p {
    font-size: 16px;
    color: #888888;
    line-height: 1.8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-card-header {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.product-card-header h3 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.product-card-header .formats {
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.05em;
}

.product-card-body {
    padding: 20px;
    flex-grow: 1;
}

.product-card-body .description {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card-body .price {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.product-card-body .price-note {
    font-size: 11px;
    color: #888888;
    text-align: center;
    margin-top: 5px;
}

.product-card-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bundle Card (Special) */
.bundle-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.bundle-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

.bundle-card-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bundle-card-info h3 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bundle-card-info .subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

.bundle-card-info .includes {
    font-size: 13px;
    color: #888888;
    line-height: 1.8;
}

.bundle-card-info .includes strong {
    color: #ffffff;
}

.bundle-card-pricing {
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bundle-card-pricing .original-price {
    font-size: 18px;
    color: #888888;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.bundle-card-pricing .price {
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.bundle-card-pricing .savings {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Purchase Button */
.purchase-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Avenir', 'Futura', sans-serif;
}

.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.purchase-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.purchase-button.loading {
    position: relative;
    color: transparent;
}

.purchase-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Email Modal */
.email-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.email-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.email-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888888;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.email-modal-close:hover {
    color: #ffffff;
}

.email-modal h3 {
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.email-modal .selected-product {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 20px;
}

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

.email-modal label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.email-modal input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Avenir', 'Futura', sans-serif;
    transition: all 0.3s ease;
}

.email-modal input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

.email-modal .form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.email-modal .error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.email-modal .error-message.show {
    display: block;
}

/* Info Section */
.purchase-info {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.purchase-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
}

.info-item .icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.info-item h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
}

.info-item p {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
}

/* Footer Links */
.purchase-footer {
    margin-top: 40px;
    text-align: center;
}

.purchase-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.purchase-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .bundle-card {
        grid-template-columns: 1fr;
    }

    .purchase-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .purchase-header h1 {
        font-size: 36px;
    }

    .purchase-header h2 {
        font-size: 18px;
    }

    .bundle-card-info,
    .bundle-card-pricing {
        padding: 30px 20px;
    }

    .bundle-card-pricing .price {
        font-size: 32px;
    }

    #hamburger-button-container {
        right: 20px;
        top: 20px;
    }

    .email-modal-content {
        padding: 30px 20px;
    }
}
