/* Thailand Coupon System - Frontend Styles */

.tcs-product-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.tcs-value-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.tcs-value-highlight p {
    margin: 8px 0;
    font-size: 16px;
}

.tcs-product-description h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tcs-product-description h4 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.tcs-product-description ul,
.tcs-product-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.tcs-product-description li {
    margin: 8px 0;
    line-height: 1.5;
}

.tcs-cta-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.tcs-cta-section p {
    margin: 0;
    font-size: 16px;
    color: #856404;
}

.tcs-booklet-product {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tcs-booklet-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.tcs-booklet-image {
    flex-shrink: 0;
}

.tcs-booklet-image img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.tcs-booklet-info {
    flex: 1;
}

.tcs-booklet-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.tcs-booklet-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.tcs-booklet-location i {
    margin-right: 5px;
    color: #999;
}

.tcs-booklet-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tcs-booklet-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.tcs-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tcs-meta-item i {
    color: #999;
}

.tcs-pricing-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.tcs-pricing-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.tcs-pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tcs-price-option {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tcs-price-option:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.tcs-price-type {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 8px;
}

.tcs-price-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.tcs-price-savings {
    color: #28a745;
    font-size: 12px;
    font-weight: bold;
}

.tcs-value-proposition {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.tcs-value-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.tcs-value-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.tcs-value-stat {
    text-align: center;
}

.tcs-value-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.tcs-value-label {
    font-size: 12px;
    opacity: 0.9;
}

.tcs-offers-preview {
    margin: 25px 0;
}

.tcs-offers-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.tcs-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.tcs-offer-card {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.tcs-offer-card:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.tcs-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tcs-offer-title {
    font-weight: bold;
    color: #333;
    flex: 1;
}

.tcs-offer-savings {
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

.tcs-offer-company {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.tcs-offer-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.tcs-offer-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.tcs-original-price {
    text-decoration: line-through;
    color: #999;
}

.tcs-discounted-price {
    color: #007cba;
    font-weight: bold;
}

.tcs-availability {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 15px 0;
    font-size: 14px;
}

.tcs-availability.limited {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.tcs-availability.good {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.tcs-purchase-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.tcs-purchase-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    text-align: left;
}

.tcs-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tcs-benefit-icon {
    color: #28a745;
    font-size: 18px;
    margin-top: 2px;
}

.tcs-benefit-text {
    flex: 1;
}

.tcs-benefit-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.tcs-benefit-description {
    font-size: 13px;
    color: #666;
}

.tcs-validity-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
}

.tcs-validity-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #004085;
}

.tcs-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcs-date-item {
    text-align: center;
}

.tcs-date-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.tcs-date-value {
    font-weight: bold;
    color: #004085;
}

.tcs-download-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
}

.tcs-download-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #856404;
}

.tcs-download-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcs-download-steps li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.tcs-download-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tcs-booklet-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .tcs-booklet-image {
        align-self: center;
    }
    
    .tcs-booklet-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .tcs-pricing-options {
        grid-template-columns: 1fr;
    }
    
    .tcs-value-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tcs-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .tcs-purchase-benefits {
        grid-template-columns: 1fr;
    }
    
    .tcs-dates {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .tcs-booklet-product {
        padding: 15px;
        margin: 15px 0;
    }
    
    .tcs-value-stats {
        grid-template-columns: 1fr;
    }
    
    .tcs-value-number {
        font-size: 1.5em;
    }
    
    .tcs-offer-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* Animation and transitions */
.tcs-offer-card,
.tcs-price-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tcs-offer-card:hover,
.tcs-price-option:hover {
    transform: translateY(-2px);
}

/* Loading states */
.tcs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: tcs-spin 1s linear infinite;
}

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

/* Print styles */
@media print {
    .tcs-booklet-product {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .tcs-value-proposition {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}
