/* ==========================================
   NewsDaily Complete Stylesheet
   GitHub Pages Compatible
   ========================================== */

/* CSS Variables */
:root {
    --primary: #ff6b35;
    --secondary: #004e89;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --card-bg: #ffffff;
    --text: #333333;
    --border: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-bn: 'Hind Siliguri', sans-serif;
}

[data-theme="dark"] {
    --light: #0f0f1a;
    --card-bg: #1a1a2e;
    --text: #e0e0e0;
    --border: #2a2a3e;
    --gray: #a0a0a0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-bn);
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.breaking-news {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breaking-label {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.weather {
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 15px;
}

/* Header */
.header-main {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Navigation */
.main-nav {
    flex: 1;
    margin: 0 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 35px 8px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    width: 200px;
    font-family: inherit;
    background: var(--light);
    color: var(--text);
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    width: 250px;
}

.search-box button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    background: var(--light);
    color: var(--text);
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #003d6e;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: rotate(180deg);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.hero-main {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-main:hover {
    transform: scale(1.02);
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px;
    color: white;
}

.category-tag {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 156px;
    cursor: pointer;
    transition: transform 0.3s;
}

.side-card:hover {
    transform: translateX(10px);
}

.side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.side-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.view-all:hover {
    transform: translateX(5px);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Trending Section */
.trending-section {
    padding: 40px 0;
    background: var(--card-bg);
    margin: 40px 0;
}

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

.trending-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.trending-card:hover {
    transform: translateY(-5px);
}

.trending-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.trending-card-content {
    padding: 15px;
}

.trend-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-content {
    padding: 20px;
}

.news-category {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: var(--text);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

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

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

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

.cat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: var(--primary);
    color: white;
}

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

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cat-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    padding: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: white;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination button {
    padding: 10px 18px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Article Page */
.article-container {
    padding: 30px 0 60px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.article-full-header {
    margin-bottom: 30px;
}

.article-meta-top {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.reading-time {
    color: var(--gray);
    font-size: 0.9rem;
}

.article-full-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

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

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

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--gray);
    font-size: 0.9rem;
    margin-right: 15px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

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

.article-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: var(--light);
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn:hover,
.action-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size-control button {
    width: 35px;
    height: 35px;
    border: 2px solid var(--border);
    background: var(--light);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.font-size-control button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.article-body-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

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

.article-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags a {
    padding: 5px 15px;
    background: var(--light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--primary);
    color: white;
}

.author-box-detailed {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--light);
    border-radius: 15px;
    margin: 40px 0;
}

.author-box-detailed img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Comments */
.comments-section {
    margin-top: 50px;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.comment-form {
    background: var(--light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--card-bg);
}

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

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-text {
    color: var(--text);
    line-height: 1.7;
}

.comment-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.comment-actions button:hover {
    color: var(--primary);
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.related-article,
.popular-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.related-article:last-child,
.popular-item:last-child {
    border-bottom: none;
}

.related-article:hover,
.popular-item:hover {
    color: var(--primary);
}

.related-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-article h5,
.popular-item h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-item {
    align-items: center;
}

.pop-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.5;
    min-width: 30px;
}

/* Profile Page */
.profile-page {
    padding: 40px 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.profile-card h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.profile-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-nav {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.profile-nav a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: var(--light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.profile-main {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Bookmarks */
.bookmarks-page {
    padding: 40px 0;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.remove-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(220,53,69,0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.remove-bookmark:hover {
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px;
    background: var(--card-bg);
    border-radius: 15px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Category Page */
.category-page {
    padding: 40px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: white;
    border-radius: 15px;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
}

/* Search Page */
.search-page {
    padding: 40px 0;
}

.search-box-large {
    text-align: center;
    margin-bottom: 40px;
}

.search-box-large h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.search-box-large form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.search-box-large input {
    flex: 1;
    padding: 18px 25px;
    border: 3px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.search-box-large input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box-large button {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.no-results {
    text-align: center;
    padding: 60px;
    background: var(--card-bg);
    border-radius: 15px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

mark {
    background: var(--primary);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Popular Page */
.popular-page {
    padding: 40px 0;
}

.trending-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.trending-item:hover {
    transform: translateX(10px);
}

.trend-rank {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    min-width: 60px;
    text-align: center;
}

.trending-item img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

.trend-info {
    flex: 1;
}

.trend-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.trend-info h3 a {
    color: var(--text);
    text-decoration: none;
}

.trend-info h3 a:hover {
    color: var(--primary);
}

.trend-stats {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.share-buttons button {
    padding: 15px;
    border: 2px solid var(--border);
    background: var(--light);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.share-buttons button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contact Page */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--light);
    transition: all 0.3s;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    animation: slideUp 0.3s;
    max-width: 400px;
}

.toast.show {
    display: flex;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

/* Print Styles */
@media print {
    .header-main,
    .article-actions-bar,
    .comments-section,
    .article-sidebar,
    footer {
        display: none !important;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main {
        height: 350px;
    }
    
    .hero-side {
        display: none;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-box {
        display: none;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .article-full-header h1 {
        font-size: 1.8rem;
    }
    
    .trending-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trending-item img {
        width: 100%;
        height: 200px;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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