/* =============================================================================
   HELLO BEAUTY BLOG - Main Stylesheet
   Design: Fresh & Modern (Rose poudré)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. VARIABLES CSS - Fresh & Modern Palette
   ----------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #F8C8DC;      /* Rose poudré */
    --color-secondary: #FFFFFF;    /* Blanc pur */
    --color-accent: #6B7280;       /* Gris élégant */
    --color-background: #FDF2F8;   /* Rose très clair */
    --color-text: #1F2937;         /* Gris foncé */
    --color-text-light: #6B7280;   /* Gris moyen */
    --color-border: #F3E8FF;       /* Rose très pâle */
    --color-success: #10B981;      /* Vert */
    --color-warning: #F59E0B;      /* Orange */
    --color-error: #EF4444;        /* Rouge */
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* -----------------------------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support (Arabic) */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text);
}

/* Accent font for quotes */
blockquote, .quote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    color: var(--color-text-light);
}

/* -----------------------------------------------------------------------------
   4. TAILWIND-LIKE UTILITIES
   ----------------------------------------------------------------------------- */

/* Background Colors */
.bg-background { background-color: var(--color-background); }
.bg-white { background-color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary\/10 { background-color: rgba(248, 200, 220, 0.1); }
.bg-primary\/90 { background-color: rgba(248, 200, 220, 0.9); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }

/* Text Colors */
.text-text { color: var(--color-text); }
.text-textLight { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: white; }

/* Font Families */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-accent { font-family: var(--font-accent); }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Font Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Borders */
.border { border: 1px solid var(--color-border); }
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.border-border { border-color: var(--color-border); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Margin */
.m-0 { margin: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-3 { margin-right: 0.75rem; }

/* Width & Height */
.w-0 { width: 0; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-80 { max-height: 20rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.-bottom-1 { bottom: -0.25rem; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Text */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Transitions */
.transition { transition-property: all; transition-duration: 150ms; }
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 150ms; }
.rotate-180 { transform: rotate(180deg); }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-primary); }
.focus\:ring-primary:focus { --tw-ring-color: var(--color-primary); }
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Hover States */
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:bg-background:hover { background-color: var(--color-background); }
.hover\:bg-primary\/90:hover { background-color: rgba(248, 200, 220, 0.9); }
.group:hover .group-hover\:text-primary\/80 { color: rgba(248, 200, 220, 0.8); }
.group:hover .group-hover\:w-full { width: 100%; }

/* Responsive Utilities */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:space-y-0 > * + * { margin-top: 0; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:h-20 { height: 5rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .lg\:text-3xl { font-size: 1.875rem; }
}

/* -----------------------------------------------------------------------------
   5. COMPONENTS
   ----------------------------------------------------------------------------- */

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width, 80rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
    .container { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
}

@media (min-width: 1024px) {
    .container { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
}

.btn-primary:hover {
    background-color: rgba(248, 200, 220, 0.9);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-background);
}

/* Cards */
.card {
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Product Card */
.product-card {
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-card__image {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.product-card__content {
    padding: var(--spacing-md);
}

.product-card__brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.product-card__price {
    font-weight: 600;
    color: var(--color-primary);
}

/* Rating Stars */
.rating {
    display: inline-flex;
    gap: 2px;
}

.rating__star {
    width: 1rem;
    height: 1rem;
    fill: var(--color-primary);
}

.rating__star--empty {
    fill: var(--color-border);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--color-background);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-secondary);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(248, 200, 220, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
}

/* -----------------------------------------------------------------------------
   6. SECTION LAYOUTS
   ----------------------------------------------------------------------------- */

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-secondary) 100%);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

/* Section */
.section {
    padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-3xl) 0;
    }
}

.section__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

/* -----------------------------------------------------------------------------
   7. SPECIFIC PAGES
   ----------------------------------------------------------------------------- */

/* Product Single Page */
.product-single {
    display: grid;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-single {
        grid-template-columns: 1fr 1fr;
    }
}

.product-single__gallery {
    aspect-ratio: 1;
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-single__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Notes Section (Perfumes) */
.notes-pyramid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.notes-pyramid__level {
    padding: var(--spacing-md);
    background-color: var(--color-background);
    border-radius: var(--radius-md);
}

.notes-pyramid__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

/* Affiliate Button */
.affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--color-primary);
    color: var(--color-text);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.affiliate-btn:hover {
    background-color: rgba(248, 200, 220, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.affiliate-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* -----------------------------------------------------------------------------
   8. ANIMATIONS
   ----------------------------------------------------------------------------- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

.animate-slide-up {
    animation: slideUp var(--transition-normal) ease-out;
}

/* -----------------------------------------------------------------------------
   9. PRINT STYLES
   ----------------------------------------------------------------------------- */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* -----------------------------------------------------------------------------
   10. RESPONSIVE UTILITIES (Tailwind-style)
   ----------------------------------------------------------------------------- */

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:gap-12 {
        gap: 3rem;
    }
    .lg\:justify-start {
        justify-content: flex-start;
    }
    .lg\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Medium screens (768px+) */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -----------------------------------------------------------------------------
   11. TYPOGRAPHY - H2 & H3 STYLING
   ----------------------------------------------------------------------------- */

.prose h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #1F2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F8C8DC;
}

.prose h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.35rem;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.prose h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: #F8C8DC;
    border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   12. FOOTER CENTERING
   ----------------------------------------------------------------------------- */

@media (min-width: 1024px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        text-align: left;
    }
}

.footer-grid {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-grid {
        text-align: left;
    }
}

/* -----------------------------------------------------------------------------
   13. FOOTER FIX - Remove bullets
   ----------------------------------------------------------------------------- */

footer ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

footer ul li {
    list-style: none !important;
}

footer ul li::before {
    display: none !important;
}

/* Center footer content */
footer .grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    footer .grid > div {
        align-items: flex-start;
    }
}

.list-none {
    list-style-type: none !important;
}

.pl-0 {
    padding-left: 0 !important;
}

/* Responsive padding for header */
@media (min-width: 1024px) {
    header > div:first-child {
        padding: 0 100px !important;
    }
}
