/* ========================================
   Glow Cosmetics - Premium Landing Page
   8-Section Marketing Structure
   ======================================== */

:root {
    --primary-color: #6B4C7A;
    --primary-dark: #4a3555;
    --primary-light: #8B6BA8;
    --accent-color: #E8B4D4;
    --accent-dark: #D4A5C4;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ========================================
   1. HOOK SECTION
   ======================================== */

.hook-section {
    background: linear-gradient(135deg, #6B4C7A 0%, #4a3555 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hook-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    animation: slideDown 0.6s ease-out;
}

.hook-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hook-highlight {
    display: inline-block;
}

.discount-badge {
    background: #FF6B6B;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: var(--shadow-lg);
}

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

/* ========================================
   2. PROBLEM SECTION
   ======================================== */

.problem-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.problem-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.problem-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.problem-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.problem-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========================================
   3. SOLUTION SECTION
   ======================================== */

.solution-section {
    padding: 60px 0;
    background: white;
}

.solution-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.solution-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.solution-image img {
    width: 100%;
    height: auto;
    display: block;
}

.solution-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.solution-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.solution-list {
    list-style: none;
}

.solution-list li {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.solution-list li:last-child {
    border-bottom: none;
}

/* ========================================
   4. USAGE SECTION
   ======================================== */

.usage-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.usage-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.usage-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.usage-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.usage-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   5. BENEFITS SECTION
   ======================================== */

.benefits-section {
    padding: 60px 0;
    background: white;
}

.benefits-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: linear-gradient(135deg, #f5f1f8 0%, #faf8fc 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   6. OBJECTIONS/FAQ SECTION
   ======================================== */

.objections-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.objections-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

.faq-answer p {
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   7. OFFER SECTION
   ======================================== */

.offer-section {
    padding: 60px 0;
    background: white;
}

.offer-card {
    background: linear-gradient(135deg, #6B4C7A 0%, #4a3555 100%);
    color: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.offer-card h2 {
    color: white;
    margin-bottom: 30px;
}

.offer-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.offer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.current-price {
    color: #FFD700;
}

.offer-divider {
    font-size: 1.5rem;
    opacity: 0.7;
}

.offer-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.savings {
    font-size: 1.3rem;
    font-weight: 700;
}

.offer-includes {
    text-align: right;
    margin: 30px 0;
}

.offer-includes h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: right;
}

.offer-includes ul {
    list-style: none;
    text-align: right;
}

.offer-includes li {
    padding: 8px 0;
    font-size: 0.95rem;
}

.offer-warning {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ========================================
   8. CTA SECTION - ORDER FORM
   ======================================== */

.cta-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.cta-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.order-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.shade-selection-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selection-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.selected-name {
    color: var(--primary-color);
    font-weight: 700;
}

.shade-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
}

.shade-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.shade-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shade-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.shade-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-section {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 76, 122, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
    background: rgba(244, 67, 54, 0.05);
}

.btn-buy-now {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-buy-now:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-buy-now:active:not(:disabled) {
    transform: translateY(0);
}

.btn-buy-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-buy-now.loading {
    position: relative;
    color: transparent;
}

.btn-buy-now.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.payment-method {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* ========================================
   MESSAGES
   ======================================== */

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    border-left: 4px solid #4caf50;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    border-left: 4px solid #f44336;
    font-size: 0.9rem;
}

/* ========================================
   TRUST SECTION
   ======================================== */

.trust-section {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--border-color);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.badge-icon {
    font-size: 2rem;
}

.badge-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ========================================
   STICKY BUY BUTTON
   ======================================== */

.sticky-buy-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: rgba(107, 76, 122, 0.95);
    padding: 8px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    max-width: 90%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.sticky-buy-button.show {
    transform: translateX(-50%) translateY(0);
}

.sticky-buy-button button {
    background: #D4AF37;
    color: #6B4C7A;
    border: none;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.sticky-buy-button button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.sticky-price {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .solution-content {
        grid-template-columns: 1fr;
    }

    .hook-content h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        padding-bottom: 70px;
    }

    .hook-section {
        padding: 40px 0;
    }

    .hook-content h1 {
        font-size: 2rem;
    }

    .hook-subtitle {
        font-size: 1.2rem;
    }

    .problem-section,
    .solution-section,
    .usage-section,
    .benefits-section,
    .objections-section,
    .offer-section,
    .cta-section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .problem-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .usage-steps {
        gap: 30px;
    }

    .offer-card {
        padding: 30px;
    }

    .order-form-wrapper {
        padding: 25px;
    }

    .shade-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .shade-btn {
        padding: 8px;
        font-size: 0.75rem;
    }

    .shade-circle {
        width: 30px;
        height: 30px;
    }

    .sticky-buy-button {
        padding: 10px 15px;
    }

    .sticky-buy-button button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        padding-bottom: 65px;
    }

    .hook-content h1 {
        font-size: 1.5rem;
    }

    .hook-subtitle {
        font-size: 1rem;
    }

    .discount-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .problem-section,
    .solution-section,
    .usage-section,
    .benefits-section,
    .objections-section,
    .offer-section,
    .cta-section {
        padding: 30px 0;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    h3 {
        font-size: 1rem;
    }

    .problem-item,
    .benefit-card {
        padding: 20px;
    }

    .usage-steps {
        gap: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .offer-card {
        padding: 20px;
    }

    .offer-details {
        flex-direction: column;
        gap: 15px;
    }

    .order-form-wrapper {
        padding: 20px;
    }

    #orderForm {
        gap: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 11px;
    }

    .shade-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .shade-btn {
        padding: 6px;
        gap: 4px;
    }

    .shade-circle {
        width: 25px;
        height: 25px;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sticky-buy-button {
        padding: 8px 10px;
    }

    .sticky-buy-button button {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .sticky-price {
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
