/* ========================================
   PREMIUM MAGAZINE STYLING
   Skincare Insights - Luxury Editorial
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Refined Color Palette */
    --ink: #1a1a2e;
    --ink-light: #2d2d44;
    --cream: #fdfbf7;
    --cream-dark: #f5f0e8;
    --accent: #1eafc2;
    --accent-dark: #178a9a;
    --accent-glow: rgba(30, 175, 194, 0.15);
    --gold: #c9a962;
    --text-primary: #2d2d44;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Premium Shadows */
    --shadow-subtle: 0 1px 3px rgba(26, 26, 46, 0.04);
    --shadow-card: 0 4px 20px rgba(26, 26, 46, 0.06), 0 1px 3px rgba(26, 26, 46, 0.04);
    --shadow-elevated: 0 12px 40px rgba(26, 26, 46, 0.12), 0 4px 12px rgba(26, 26, 46, 0.06);
    --shadow-dramatic: 0 25px 60px rgba(26, 26, 46, 0.18), 0 8px 20px rgba(26, 26, 46, 0.08);
    
    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.6s;
}

/* ========================================
   BASE STYLES
======================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.7;
}

::selection {
    background: var(--accent-glow);
    color: var(--ink);
}

/* Editorial Heading Font */
h1, h2, h3, .featured-title, .article-card-title, .logo, .article-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ========================================
   HEADER - Minimal Luxury
======================================== */
.site-header {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow: none;
    padding: 0.25rem 0;
}

.main-nav {
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-base) var(--ease-out);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   HERO - Editorial Impact
======================================== */
.hero {
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-light) 50%, #3d3d5c 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(30, 175, 194, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    max-width: 480px;
    letter-spacing: 0.01em;
}

.hero-medium {
    min-height: 220px;
    padding: 3.5rem 0;
}

/* ========================================
   NEWS TICKER - Refined
======================================== */
.news-ticker {
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.ticker-label {
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.ticker-text {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

/* ========================================
   FEATURED ARTICLE - Hero Card
======================================== */
.featured-article {
    padding: 4rem 0;
    gap: 4rem;
    align-items: stretch;
}

.featured-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-dramatic);
    transition: all var(--duration-slow) var(--ease-out);
}

.featured-image::before {
    content: 'FEATURED';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.9rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(30, 175, 194, 0.3);
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 26, 46, 0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
    pointer-events: none;
}

.featured-image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-dramatic), 0 0 60px rgba(30, 175, 194, 0.1);
}

.featured-image:hover::after {
    opacity: 1;
}

.featured-image img {
    transition: transform var(--duration-slow) var(--ease-out);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.featured-date::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.featured-title {
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.featured-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
    background: linear-gradient(transparent 92%, var(--accent-glow) 92%);
}

.featured-title a:hover {
    color: var(--accent-dark);
}

.featured-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

/* ========================================
   BUTTONS - Refined
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-decoration: none;
}

.btn-primary {
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated), 0 0 30px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================================
   SECTION DIVIDER
======================================== */
.section-divider {
    border: none;
    height: 0;
    margin: 0;
    position: relative;
}

.section-divider::before {
    content: '◆';
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 2rem;
    padding: 0 2rem;
}

/* ========================================
   ARTICLE CARDS - Editorial Grid
======================================== */
.articles-grid-home {
    gap: 2.5rem;
    padding: 3rem 0 4rem;
}

.article-card-home {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(26, 26, 46, 0.04);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.article-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.article-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: transparent;
}

.article-card-home:hover::before {
    transform: scaleX(1);
}

.article-card-image {
    display: block;
    overflow: hidden;
    position: relative;
}

.article-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 26, 46, 0.15) 0%, transparent 30%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.article-card-home:hover .article-card-image::after {
    opacity: 1;
}

.article-card-image img {
    transition: transform var(--duration-slow) var(--ease-out);
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.article-card-home:hover .article-card-image img {
    transform: scale(1.06);
}

.article-card-content {
    padding: 1.5rem 1.75rem 1.75rem;
}

.article-card-date {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.article-card-title {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.article-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.article-card-title a:hover {
    color: var(--accent-dark);
}

.article-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   BLOG PAGE
======================================== */
.articles-grid {
    gap: 2.5rem;
}

.article-card {
    border-radius: 4px;
    border: 1px solid rgba(26, 26, 46, 0.04);
    transition: all var(--duration-base) var(--ease-out);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.article-image {
    border-radius: 4px 4px 0 0;
}

.article-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
}

/* ========================================
   SINGLE ARTICLE
======================================== */
.article-body {
    background: white;
    border-radius: 4px;
    padding: 3rem 3.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(26, 26, 46, 0.04);
}

.article-body h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ink);
    margin: 3rem 0 1.25rem;
    letter-spacing: -0.01em;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-light);
    margin: 2rem 0 1rem;
    letter-spacing: 0.01em;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-body p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 600;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    color: var(--accent);
}

.article-body blockquote {
    position: relative;
    border: none;
    background: var(--cream-dark);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-body img {
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
}

.article-featured-image {
    border-radius: 4px;
    box-shadow: var(--shadow-elevated);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--ink);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.75;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    font-size: 0.875rem;
    opacity: 0.75;
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-block;
}

.footer-column a:hover {
    opacity: 1;
    transform: translateX(6px);
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ========================================
   PAGE CONTENT
======================================== */
.page-content-wrapper {
    background: white;
    border-radius: 4px;
    border: 1px solid rgba(26, 26, 46, 0.04);
    box-shadow: var(--shadow-card);
}

.page-content-wrapper h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

/* ========================================
   BREADCRUMBS
======================================== */
.breadcrumbs {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 1.5rem 0;
}

.breadcrumbs a {
    color: var(--accent);
    transition: opacity var(--duration-fast);
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumbs span {
    color: var(--text-muted);
}

/* ========================================
   PAGINATION
======================================== */
.pagination a,
.pagination span {
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
    background: var(--cream-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--ink);
    border-color: var(--ink);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.featured-article {
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.article-card-home,
.article-card {
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) forwards;
}

.articles-grid-home .article-card-home:nth-child(1) { animation-delay: 0.1s; }
.articles-grid-home .article-card-home:nth-child(2) { animation-delay: 0.15s; }
.articles-grid-home .article-card-home:nth-child(3) { animation-delay: 0.2s; }
.articles-grid-home .article-card-home:nth-child(4) { animation-delay: 0.25s; }
.articles-grid-home .article-card-home:nth-child(5) { animation-delay: 0.3s; }
.articles-grid-home .article-card-home:nth-child(6) { animation-delay: 0.35s; }

html {
    scroll-behavior: smooth;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .featured-article {
        gap: 2.5rem;
    }
    
    .featured-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
    }
    
    .article-card-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .article-card-title {
        font-size: 1.2rem;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
    
    .article-body p:first-of-type::first-letter {
        font-size: 3rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* ========================================
   ARTICLE META - Reading Time
======================================== */
.article-meta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.meta-separator {
    opacity: 0.5;
}

.meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-reading-time::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.9;
}

/* ========================================
   SHARE SECTION
======================================== */
.share-section {
    background: var(--cream-dark);
    border-radius: 4px;
    padding: 2rem;
    margin: 3rem auto 2rem;
    max-width: 800px;
    text-align: center;
}

.share-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.share-btn svg {
    transition: transform var(--duration-fast);
}

.share-btn:hover svg {
    transform: scale(1.1);
}

/* Platform Colors on Hover */
.share-twitter:hover {
    background: #000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.share-facebook:hover {
    background: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.35);
}

.share-linkedin:hover {
    background: #0a66c2;
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.35);
}

.share-email:hover {
    background: var(--accent);
    box-shadow: 0 8px 25px rgba(30, 175, 194, 0.35);
}

.share-copy:hover {
    background: var(--gold);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.35);
}

/* Copy Tooltip */
.copy-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--ink);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
}

.copy-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--ink);
}

.share-copy.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.share-copy.copied {
    background: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

/* Mobile Share Buttons */
@media (max-width: 768px) {
    .share-section {
        padding: 1.5rem;
        margin: 2rem auto 1.5rem;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
    }
    
    .share-buttons {
        gap: 0.6rem;
    }
}
