/*
 * AssamWeb Store - Main Stylesheet
 * Location: public_html/store/assets/css/style.css
 * 
 * Built on top of Bootstrap 5.3 using custom CSS variables to achieve
 * the premium, clean, SaaS-like aesthetic requested.
 */

/* ==========================================================================
   Base & Typography
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Accounts for fixed navbar */
}

body {
    font-family: var(--aw-font-body);
    background-color: var(--aw-bg-body);
    color: var(--aw-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--aw-font-heading);
    font-weight: 700;
    color: var(--aw-text-dark);
    letter-spacing: -0.02em;
}

a {
    color: var(--aw-primary);
    text-decoration: none;
    transition: color var(--aw-transition-fast);
}

a:hover {
    color: var(--aw-primary-hover);
}

.text-primary { color: var(--aw-primary) !important; }
.text-secondary { color: var(--aw-text-muted) !important; }
.text-cta { color: var(--aw-cta) !important; }

/* ==========================================================================
   Custom Utilities (Radii, Shadows, Transitions)
   ========================================================================== */

.radius-20 {
    border-radius: var(--aw-radius-lg) !important;
}

.radius-12 {
    border-radius: var(--aw-radius-md) !important;
}

.shadow-soft {
    box-shadow: var(--aw-shadow-md) !important;
}

.shadow-premium {
    box-shadow: var(--aw-shadow-lg) !important;
}

.shadow-glow {
    box-shadow: var(--aw-shadow-glow) !important;
}

.transition-all {
    transition: all var(--aw-transition-normal);
}

.hover-lift {
    transition: transform var(--aw-transition-fast), box-shadow var(--aw-transition-fast);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--aw-shadow-xl) !important;
}

.hover-primary:hover {
    color: var(--aw-primary) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-weight: 600;
    font-family: var(--aw-font-body);
    padding: 0.6rem 1.5rem;
    border-radius: var(--aw-radius-pill);
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--aw-primary);
    border-color: var(--aw-primary);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--aw-primary-hover);
    border-color: var(--aw-primary-hover);
    box-shadow: var(--aw-shadow-glow);
}

/* Orange CTA Button (Buy Now) */
.btn-cta {
    background: linear-gradient(135deg, #ff8c00 0%, var(--aw-cta) 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: var(--aw-shadow-cta-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--aw-cta) 0%, #e56000 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--aw-transition-fast);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

.btn-outline-primary {
    color: var(--aw-primary);
    border-color: var(--aw-primary);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--aw-primary-light);
    color: var(--aw-primary);
    border-color: var(--aw-primary);
}

/* ==========================================================================
   Modern Cards
   ========================================================================== */

.card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--aw-radius-lg);
    box-shadow: var(--aw-shadow-sm);
    transition: all var(--aw-transition-normal);
    overflow: hidden;
}

.card-premium:hover {
    box-shadow: var(--aw-shadow-lg);
    border-color: rgba(0, 86, 179, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aw-radius-md);
    background-color: var(--aw-primary-light);
    color: var(--aw-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.icon-box.success {
    background-color: var(--aw-success-light);
    color: var(--aw-success);
}

/* ==========================================================================
   Specific Sections (Hero, Book Preview, FAQ)
   ========================================================================== */

/* Hero Section */
.hero-section {
    background-color: var(--aw-bg-surface);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background-color: var(--aw-primary-light);
    color: var(--aw-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--aw-radius-pill);
    display: inline-block;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

/* Book Cover 3D Effect */
.book-cover-wrapper {
    perspective: 1000px;
    position: relative;
}

.book-cover-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 4px 12px 12px 4px; /* Hard spine, curved edges */
    box-shadow: 
        inset 4px 0 10px rgba(0,0,0,0.1), /* Spine shadow */
        -5px 5px 15px rgba(0,0,0,0.15),   /* Outer drop shadow */
        -15px 15px 35px rgba(0,0,0,0.1);  /* Deep shadow */
    transition: transform var(--aw-transition-slow);
    transform: rotateY(-15deg); /* Slight 3D tilt like the reference */
}

.book-cover-wrapper:hover .book-cover-img {
    transform: rotateY(-5deg) translateY(-5px);
}

.latest-edition-badge {
    position: absolute;
    top: -15px;
    right: 15px;
    width: 80px;
    height: 80px;
    background: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1.1;
    color: #000;
    box-shadow: var(--aw-shadow-md);
    transform: rotate(15deg);
    z-index: 2;
}

/* Info Bar (Stats) */
.stats-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--aw-radius-lg);
    box-shadow: var(--aw-shadow-lg);
}

.stat-item {
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

/* Testimonials */
.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--aw-shadow-sm);
    margin-top: -32px; /* Pull up out of the card */
}

.star-rating {
    color: var(--aw-warning);
    font-size: 1.1rem;
}

/* Countdown Timer */
.countdown-box {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--aw-radius-md);
    padding: 1rem;
    text-align: center;
    min-width: 70px;
    box-shadow: var(--aw-shadow-sm);
}
.countdown-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--aw-text-dark);
    line-height: 1;
}
.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--aw-text-muted);
    font-weight: 600;
    margin-top: 5px;
}

/* FAQ Accordion */
.custom-accordion .accordion-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--aw-radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--aw-shadow-sm);
}

.custom-accordion .accordion-button {
    font-weight: 600;
    color: var(--aw-text-dark);
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--aw-primary);
    background-color: var(--aw-primary-light);
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.08);
}

/* Footer */
.footer-area {
    background-color: #0f172a;
    color: #e2e8f0;
}
.footer-area a {
    color: #94a3b8;
}
.footer-area a:hover {
    color: #ffffff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}