/* ========================================
   FASHION MAGAZINE - MAIN STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #c9a962;
    --accent-hover: #b8984f;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --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 32px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.top-bar {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-date {
    color: rgba(255,255,255,0.8);
}

.top-bar-edition {
    color: var(--accent-color);
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* Main Header */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.logo span {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-light);
}

.nav-content {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all:hover {
    color: var(--accent-hover);
}

/* ========================================
   SPOTLIGHT SECTION (HERO)
   ======================================== */

.spotlight-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.spotlight-main {
    position: relative;
}

.spotlight-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.spotlight-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.spotlight-main:hover .spotlight-image img {
    transform: scale(1.03);
}

.spotlight-content {
    padding: 24px 0 0;
}

.spotlight-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.spotlight-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

.spotlight-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spotlight-meta a {
    color: var(--text-primary);
    font-weight: 500;
}

.spotlight-meta a:hover {
    color: var(--accent-color);
}

/* Spotlight Sidebar */
.spotlight-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-article {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.sidebar-article-content {
    flex: 1;
}

.sidebar-article-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.sidebar-article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

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

/* ========================================
   FEATURED STORIES
   ======================================== */

.featured-section {
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.featured-card {
    position: relative;
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
}

.featured-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.featured-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

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

/* ========================================
   LATEST NEWS
   ======================================== */

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

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.latest-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 4px;
    transition: var(--transition);
}

.latest-item:hover {
    box-shadow: var(--shadow-md);
}

.latest-image {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.latest-content {
    flex: 1;
}

.latest-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.latest-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

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

.latest-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.latest-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   BEST OF THE WEEK
   ======================================== */

.best-section {
    padding: 60px 0;
}

.best-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.best-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.best-card-image {
    position: relative;
    overflow: hidden;
}

.best-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.best-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.best-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.best-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-white);
    line-height: 1.4;
}

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

/* ========================================
   MUST READ SECTION
   ======================================== */

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

.mustread-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* Long Read */
.longread-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.longread-image {
    position: relative;
}

.longread-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.longread-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 32px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.longread-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.longread-title {
    font-size: 1.75rem;
    color: var(--bg-white);
    margin-bottom: 16px;
    line-height: 1.3;
}

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

.longread-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.longread-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.longread-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.longread-author-info {
    color: var(--bg-white);
}

.longread-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.longread-author-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Analysis List */
.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 4px;
    transition: var(--transition);
}

.analysis-item:hover {
    box-shadow: var(--shadow-md);
}

.analysis-type {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    padding: 4px 10px;
    background-color: rgba(201, 169, 98, 0.1);
    border-radius: 2px;
    height: fit-content;
}

.analysis-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.analysis-content h4 a:hover {
    color: var(--accent-color);
}

.analysis-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.category-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-section:last-of-type {
    border-bottom: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-title {
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card-image {
    overflow: hidden;
    border-radius: 4px;
}

.category-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.category-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

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

.category-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   ARCHIVE SECTION
   ======================================== */

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

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 4px;
    transition: var(--transition);
}

.archive-item:hover {
    box-shadow: var(--shadow-md);
}

.archive-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.archive-content {
    flex: 1;
}

.archive-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.archive-content h5 a:hover {
    color: var(--accent-color);
}

.archive-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--bg-white);
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.newsletter-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-brand .logo span {
    color: rgba(255,255,255,0.6);
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h6 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* ========================================
   ARTICLE PAGE
   ======================================== */

.article-header {
    padding: 40px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.article-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.75rem;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-info {
    text-align: left;
}

.article-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.article-author-name a:hover {
    color: var(--accent-color);
}

.article-author-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.article-content {
    padding: 48px 0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 48px 0 24px;
}

.article-body h3 {
    font-size: 1.35rem;
    margin: 36px 0 18px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.article-body img {
    width: 100%;
    border-radius: 4px;
    margin: 32px 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -20px;
    margin-bottom: 32px;
}

/* Article Sharing */
.article-sharing {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 48px 0;
}

.share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

/* Like Button */
.like-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: 4px;
    transition: var(--transition);
    margin-left: auto;
}

.like-button:hover {
    background-color: #ff4757;
    color: var(--bg-white);
}

.like-button.liked {
    background-color: #ff4757;
    color: var(--bg-white);
}

.like-count {
    font-weight: 600;
}

/* Article Author Box */
.article-author-box {
    display: flex;
    gap: 24px;
    padding: 32px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin: 48px 0;
}

.article-author-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-author-box-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.article-author-box-content .role {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-author-box-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Articles */
.related-articles {
    padding: 48px 0;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   AUTHOR PAGE
   ======================================== */

.author-header {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.author-header-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.author-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.author-header .role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.author-header .bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.author-stat {
    text-align: center;
}

.author-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.author-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-articles {
    padding: 60px 0;
}

/* ========================================
   CATEGORY/ARCHIVE PAGE
   ======================================== */

.page-header {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.articles-list {
    padding: 48px 0;
}

.articles-list-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.list-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

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

.list-article-image {
    overflow: hidden;
    border-radius: 4px;
}

.list-article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.list-article-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.list-article-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

.list-article-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.list-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.pagination .current {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

/* ========================================
   SEARCH
   ======================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 1.25rem;
    border: none;
    border-radius: 4px;
    background-color: var(--bg-white);
}

.search-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.search-results {
    background-color: var(--bg-white);
    border-radius: 4px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--bg-light);
}

.search-result-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.search-result-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-trigger {
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 8px;
}

.search-trigger:hover {
    color: var(--accent-color);
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

.admin-body {
    background-color: #f5f6fa;
}

.admin-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-logo span {
    color: var(--accent-color);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
}
@media (max-width:768px){

.admin-layout{
display:block;
}

.admin-sidebar{
position:fixed;
top:0;
left:-260px;
width:260px;
height:100vh;
z-index:2000;
transition:left 0.3s ease;
}

.admin-sidebar.active{
left:0;
}

}
/* Admin Sidebar */
.admin-sidebar {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 24px 0;
}

.admin-nav-section {
    margin-bottom: 24px;
}

.admin-nav-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    padding: 0 24px 12px;
}

.admin-nav-menu {
    display: flex;
    flex-direction: column;
}

.admin-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.admin-nav-menu a:hover,
.admin-nav-menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--bg-white);
}

.admin-nav-menu a i {
    width: 20px;
    text-align: center;
}

/* Admin Main Content */
.admin-main {
    padding: 32px;
    overflow-y: auto;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-page-title {
    font-size: 1.75rem;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

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

.admin-btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.admin-btn-secondary:hover {
    background-color: var(--border-color);
}

.admin-btn-danger {
    background-color: #ff4757;
}

.admin-btn-danger:hover {
    background-color: #ee3742;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.admin-stat-icon.blue { background-color: rgba(66, 133, 244, 0.1); color: #4285f4; }
.admin-stat-icon.green { background-color: rgba(52, 168, 83, 0.1); color: #34a853; }
.admin-stat-icon.orange { background-color: rgba(251, 188, 5, 0.1); color: #fbbc05; }
.admin-stat-icon.purple { background-color: rgba(156, 39, 176, 0.1); color: #9c27b0; }

.admin-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.admin-stat-change {
    font-size: 0.85rem;
    margin-top: 8px;
}

.admin-stat-change.positive { color: #34a853; }
.admin-stat-change.negative { color: #ff4757; }

/* Admin Cards */
.admin-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-card-body {
    padding: 24px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.admin-table tr:hover td {
    background-color: var(--bg-light);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    transition: var(--transition);
}

.admin-table .action-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.admin-table .action-btn.delete:hover {
    background-color: #ff4757;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.status-badge.published { background-color: rgba(52, 168, 83, 0.1); color: #34a853; }
.status-badge.draft { background-color: rgba(251, 188, 5, 0.1); color: #fbbc05; }
.status-badge.scheduled { background-color: rgba(66, 133, 244, 0.1); color: #4285f4; }
.status-badge.pending { background-color: rgba(255, 71, 87, 0.1); color: #ff4757; }
.status-badge.approved { background-color: rgba(52, 168, 83, 0.1); color: #34a853; }

/* Admin Forms */
.admin-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-label span {
    color: #ff4757;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Image Upload */
.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.image-upload:hover {
    border-color: var(--accent-color);
    background-color: rgba(201, 169, 98, 0.05);
}

.image-upload-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.image-upload-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.image-upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Chart Container */
.chart-container {
    height: 300px;
    position: relative;
}

/* Ad Placement Blocks */
.ad-placement {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    background-color: var(--bg-light);
}

.ad-placement-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.ad-placement-size {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

@media (max-width: 1024px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .best-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mustread-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-content.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .spotlight-title {
        font-size: 1.75rem;
    }
    
    .spotlight-image img {
        height: 300px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .best-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .longread-title {
        font-size: 1.35rem;
    }
    
    .longread-image img {
        height: 350px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .list-article {
        grid-template-columns: 1fr;
    }
    
    .list-article-image img {
        height: 200px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .article-author-box img {
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .spotlight-title {
        font-size: 1.5rem;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .article-sharing {
        flex-wrap: wrap;
    }
    
    .like-button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.sr-only { position: absolute; left: -10000px; }
