/* Celebrity Buzz - Entertainment Gossip Website Styles */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #005a8b, #00b31e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: #73ff00;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #6200ff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #00668b;
    border-bottom: 3px solid #ff00e1;
    padding-bottom: 0.5rem;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-story {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.featured-story:hover {
    transform: translateY(-5px);
}

.featured-image {
    height: 250px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.featured-content h3 a {
    color: #8b0000;
    text-decoration: none;
}

.featured-content h3 a:hover {
    color: #b30000;
}

/* Newspaper Layout */
.newspaper-section {
    margin-bottom: 3rem;
}

.newspaper-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-image {
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-item h3 a {
    color: #8b0000;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #b30000;
}

.news-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Secondary Section - Title Only */
.secondary-section {
    margin-bottom: 3rem;
}

.title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.title-item {
    background: white;
    padding: 1rem;
    border-left: 4px solid #ffd700;
    transition: background-color 0.3s;
}

.title-item:hover {
    background-color: #fff8e1;
}

.title-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.title-item a:hover {
    color: #8b0000;
}

/* Load More Section */
.load-more-section {
    margin-bottom: 3rem;
}

.more-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* High Density News Grid */
.high-density-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.high-density-item {
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.high-density-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.high-density-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.high-density-item a:hover {
    color: #8b0000;
}

.load-more-btn {
    display: block;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background: #b30000;
}

/* Detail Page Styles */
.detail-content {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #8b0000;
    text-decoration: none;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #8b0000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-image {
    margin-bottom: 2rem;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 3rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background: #b30000;
}

/* Footer Styles */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .newspaper-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .title-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .news-image {
        height: 150px;
    }
}

/* News Ticker Styles */
.news-ticker {
    background: #333;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-item:hover {
    color: #ffd700;
}

.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Lazy Loading Styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Animation for smooth loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-item, .featured-story, .title-item {
    animation: fadeIn 0.6s ease-out;
}

/* Search Results Styles */
.search-results {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-results h3 {
    color: #8b0000;
    margin-bottom: 1rem;
}

.search-results ul {
    list-style: none;
}

.search-results li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.search-results li:hover {
    border-left-color: #ffd700;
    background-color: #fff8e1;
}

.search-results a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.search-results a:hover {
    color: #8b0000;
}

/* ============================================
   LOAD MORE SECTION STYLES
   ============================================ */

.more-news-container {
    margin-bottom: 2rem;
}

.loaded-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

.loaded-title {
    border-bottom: 3px solid #8b0000;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Three Column Layout */
.loaded-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.loaded-three-col .loaded-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.loaded-news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.loaded-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.loaded-news-image {
    height: 150px;
    overflow: hidden;
}

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

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

.loaded-news-item h3 {
    font-size: 1rem;
    padding: 0.75rem;
    margin: 0;
}

.loaded-news-item h3 a {
    color: #333;
    text-decoration: none;
}

.loaded-news-item h3 a:hover {
    color: #8b0000;
}

.loaded-news-item p {
    padding: 0 0.75rem 0.75rem;
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Two Column Layout */
.loaded-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.loaded-two-col .loaded-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loaded-news-item-large {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.loaded-news-item-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.loaded-news-image-large {
    height: 200px;
    overflow: hidden;
}

.loaded-news-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.loaded-news-item-large:hover .loaded-news-image-large img {
    transform: scale(1.05);
}

.loaded-news-item-large .loaded-news-content {
    padding: 1rem;
}

.loaded-news-item-large h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.loaded-news-item-large h3 a {
    color: #333;
    text-decoration: none;
}

.loaded-news-item-large h3 a:hover {
    color: #8b0000;
}

.loaded-news-item-large p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* One Column Layout */
.loaded-one-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loaded-news-item-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.loaded-news-item-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.loaded-news-image-featured {
    height: 250px;
    overflow: hidden;
}

.loaded-news-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.loaded-news-content-featured {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loaded-news-content-featured h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
}

.loaded-news-content-featured h3 a {
    color: #333;
    text-decoration: none;
}

.loaded-news-content-featured h3 a:hover {
    color: #8b0000;
}

.loaded-news-content-featured p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Compact Layout */
.loaded-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.loaded-news-item-compact {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.loaded-news-item-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.loaded-news-image-compact {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.loaded-news-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loaded-news-content-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loaded-news-content-compact h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.loaded-news-content-compact h4 a {
    color: #333;
    text-decoration: none;
}

.loaded-news-content-compact h4 a:hover {
    color: #8b0000;
}

.loaded-news-content-compact p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

/* Search Results Styles */
.search-results-section {
    margin-bottom: 2rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

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

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-content h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.search-result-content h3 a {
    color: #333;
    text-decoration: none;
}

.search-result-content h3 a:hover {
    color: #8b0000;
}

.search-result-content p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .loaded-three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .loaded-three-col .loaded-column:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .loaded-three-col,
    .loaded-two-col,
    .loaded-compact,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .loaded-news-item-featured {
        grid-template-columns: 1fr;
    }

    .loaded-news-image-featured {
        height: 180px;
    }

    .loaded-news-content-featured {
        padding: 1rem;
    }

    .loaded-news-item-large {
        flex-direction: column;
    }

    .loaded-news-image-large {
        height: 150px;
    }
}