/* Shawarma Theme - Crazy Fast Food Homepage Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Luckiest+Guy&family=Righteous&display=swap');

/* Main Container */
.main-container {
    display: flex;
    margin: 0 auto;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 1200px;
}

.content {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF5E1 0%, #FFEAA7 100%);
    border-radius: 25px;
    padding: 20px;
    border: 4px solid #FF6B35;
    box-shadow: 8px 8px 0 0 #D63031;
    position: relative;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/icons/food-pattern.png');
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    border-radius: 21px;
}

/* Carousel Styles */
.articles-carousel-section {
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    border: 4px solid #D63031;
    box-shadow: 6px 6px 0 0 #FF6B35;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-card {
    display: block;
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,107,53,0.3) 0%, rgba(214,48,49,0.8) 100%);
    transition: background 0.3s ease;
}

.carousel-card:hover::before {
    background: linear-gradient(to bottom, rgba(255,107,53,0.4) 0%, rgba(214,48,49,0.9) 100%);
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 60px;
    color: white;
    z-index: 1;
}

.carousel-content h3 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFE66D;
    text-shadow: 3px 3px 0 #D63031, -1px -1px 0 #D63031;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 2px;
}

.carousel-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    font-family: 'Fredoka One', cursive;
}

.carousel-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.carousel-date,
.carousel-category {
    background-color: #FFE66D;
    color: #D63031;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #D63031;
    font-family: 'Righteous', cursive;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FFE66D;
    border: 3px solid #D63031;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 0 #D63031;
    color: #D63031;
}

.carousel-btn:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-50%) scale(1.1) rotate(10deg);
}

.carousel-prev {
    left: -30px;
}

.carousel-next {
    right: -30px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #FFE66D;
    border: 3px solid #D63031;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #FF6B35;
    width: 40px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 0 #D63031;
}

.carousel-dot:hover {
    background-color: #4ECDC4;
    transform: scale(1.2);
}

/* Section Labels - как вывески фастфуда */
.hot-label,
.fresh-label,
.news-label {
    background: linear-gradient(135deg, #FF6B35, #D63031);
    color: #FFE66D;
    text-align: center;
    padding: 15px 25px;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 25px;
    max-width: 80%;
    margin: 0 auto 25px auto;
    border-radius: 0;
    border: 4px solid #2D3436;
    box-shadow: 6px 6px 0 0 #2D3436;
    font-family: 'Luckiest Guy', cursive;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: rotate(-2deg);
    position: relative;
}

.hot-label::before {
    content: '🌶️';
    margin-right: 10px;
}

.hot-label::after {
    content: '🔥';
    margin-left: 10px;
}

.fresh-label {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    transform: rotate(1deg);
}

.fresh-label::before {
    content: '🥙';
    margin-right: 10px;
}

.news-label {
    background: linear-gradient(135deg, #F39C12, #F1C40F);
    color: #2D3436;
    transform: rotate(-1deg);
}

.news-label::before {
    content: '🍟';
    margin-right: 10px;
}

/* Fresh Articles */
.fresh-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 10px 0;
    margin-bottom: 30px;
    max-width: 80%;
    margin: 0 auto;
}

.fresh-article {
    flex: 1 1 calc(33.333% - 40px);
    min-width: 280px;
    border: 4px solid #FF6B35;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFF5E1 0%, #FFEAA7 100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-sizing: border-box;
    box-shadow: 5px 5px 0 0 #D63031;
    position: relative;
}

.fresh-article::before {
    content: '🥙';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2em;
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

.fresh-article:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 8px 8px 0 0 #D63031;
}

.fresh-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.fresh-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 4px solid #FF6B35;
}

.fresh-content {
    padding: 15px;
    text-align: left;
}

.fresh-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #D63031;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Fredoka One', cursive;
}

.fresh-summary {
    font-size: 0.95em;
    color: #5D4E37;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.fresh-time {
    font-size: 0.85em;
    color: #FF6B35;
    margin-top: 5px;
    font-weight: bold;
    font-family: 'Righteous', cursive;
}

/* Featured/Hot Articles */
.featured-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 10px 0;
    margin-bottom: 30px;
    max-width: 80%;
    margin: 0 auto;
}

.featured-article {
    flex: 1 1 calc(33.333% - 40px);
    min-width: 280px;
    border: 4px solid #D63031;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFF5E1 0%, #FFE8CC 100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-sizing: border-box;
    box-shadow: 5px 5px 0 0 #FF6B35;
    position: relative;
}

.featured-article::before {
    content: '🔥';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2em;
    z-index: 10;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.featured-article:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 8px 8px 0 0 #FF6B35;
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.featured-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 4px solid #D63031;
}

.featured-content {
    padding: 15px;
    text-align: left;
}

.featured-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #D63031;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Fredoka One', cursive;
}

.featured-summary {
    font-size: 0.95em;
    color: #5D4E37;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.featured-date {
    font-size: 0.85em;
    color: #FF6B35;
    font-weight: bold;
    font-family: 'Righteous', cursive;
}

/* News List - Grid Layout */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
}

.news-item-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 4px solid #F39C12;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFF5E1 0%, #FFD699 100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    box-shadow: 5px 5px 0 0 #B8860B;
    height: 100%;
    position: relative;
}

.news-item-list::before {
    content: '🍟';
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 1.5em;
    z-index: 10;
}

.news-item-list:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 8px 8px 0 0 #B8860B;
}

.news-link-list {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.news-image-list {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #F39C12;
    flex-shrink: 0;
}

.news-content-list {
    flex: 1;
    min-width: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.news-title-list {
    font-size: 1.2em;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #8B6914;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Fredoka One', cursive;
}

.news-summary-list {
    font-size: 0.95em;
    color: #5D4E37;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.news-date-list {
    font-size: 0.85em;
    color: #F39C12;
    font-weight: bold;
    font-family: 'Righteous', cursive;
}

.news-grid-mobile {
    display: none;
}

/* Ad Sidebar */
.ad-sidebar {
    margin-top: 15px;
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
    height: calc(100vh - 100px);
    position: sticky;
    top: 80px;
    background: linear-gradient(180deg, #FFF5E1 0%, #FFEAA7 100%);
    border-radius: 20px;
    padding: 15px;
    border: 4px solid #FF6B35;
    box-shadow: 5px 5px 0 0 #D63031;
}

.ad-banner {
    margin-bottom: 20px;
}

.ad-banner img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #D63031;
}

/* Tablet Styles - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }

    .featured-articles,
    .fresh-articles {
        max-width: 90%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 0 10px;
    }

    .content {
        padding: 15px;
        border-width: 3px;
        box-shadow: 5px 5px 0 0 #D63031;
    }

    .ad-sidebar {
        display: none;
    }

    .carousel-card {
        height: 300px;
    }

    .carousel-wrapper {
        border-width: 3px;
        box-shadow: 4px 4px 0 0 #FF6B35;
    }

    .carousel-content h3 {
        font-size: 1.5em;
    }

    .carousel-content p {
        font-size: 0.95em;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-content {
        padding: 20px 50px;
    }

    .hot-label,
    .fresh-label,
    .news-label {
        max-width: 100%;
        padding: 12px 15px;
        font-size: 1.1em;
        margin: 0 0 20px 0;
        transform: rotate(0deg);
    }

    .news-list {
        display: none;
    }

    .news-grid-mobile {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 20px;
        visibility: visible;
    }

    .news-item-mobile {
        display: flex;
        align-items: flex-start;
        height: auto;
        padding: 12px;
        box-sizing: border-box;
        gap: 12px;
        margin-top: 10px;
        position: relative;
        border: 3px solid #F39C12;
        border-radius: 15px;
        background: linear-gradient(135deg, #FFF5E1 0%, #FFD699 100%);
        transition: all 0.3s ease;
        box-shadow: 4px 4px 0 0 #B8860B;
    }

    .news-item-mobile:hover {
        transform: translateY(-3px);
        box-shadow: 5px 5px 0 0 #B8860B;
    }

    .news-separator {
        border: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #FF6B35, transparent);
        margin: 10px 0;
    }

    .news-link-mobile {
        display: flex;
        gap: 12px;
        text-decoration: none;
        color: inherit;
        width: 100%;
    }

    .news-image-mobile {
        width: 35vw;
        height: 35vw;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 12px;
        border: 3px solid #FF6B35;
    }

    .news-content-mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .news-title-mobile {
        background-color: transparent;
        color: #D63031;
        font-weight: 600;
        padding: 0;
        text-align: left;
        font-size: 16px;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-family: 'Fredoka One', cursive;
    }

    .news-date-mobile {
        background: linear-gradient(135deg, #FF6B35, #D63031);
        color: #FFE66D;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 11px;
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-family: 'Righteous', cursive;
        border: 2px solid #D63031;
    }

    .featured-articles,
    .fresh-articles {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        gap: 15px;
    }

    .featured-article,
    .fresh-article {
        flex: 1 1 100%;
        min-width: 100%;
        margin-bottom: 15px;
    }

    .featured-article::before,
    .fresh-article::before {
        font-size: 1.5em;
    }

    .featured-image,
    .fresh-image {
        height: 150px;
    }

    .featured-title,
    .fresh-title {
        font-size: 1.1em;
    }

    .featured-summary,
    .fresh-summary {
        font-size: 0.9em;
    }

    .featured-date,
    .fresh-time {
        font-size: 0.8em;
    }
}

/* Pagination Styles */
.pagination {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.pagination ul li {
    display: inline;
    margin: 0 5px;
}

.pagination ul li a,
.pagination ul li span {
    display: inline-block;
    padding: 10px 16px;
    border: 3px solid #D63031;
    border-radius: 10px;
    text-decoration: none;
    color: #D63031;
    background: #FFE66D;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 0 #D63031;
}

.pagination ul li a:hover {
    background: #FF6B35;
    color: #FFE66D;
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 0 #D63031;
}

.pagination ul li.active span {
    background: #D63031;
    color: #FFE66D;
    box-shadow: 3px 3px 0 0 #2D3436;
}

.pagination ul li.disabled span {
    color: #B8860B;
    background: #FFD699;
    border-color: #B8860B;
    cursor: not-allowed;
    box-shadow: 2px 2px 0 0 #B8860B;
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .carousel-card {
        height: 250px;
    }

    .carousel-content {
        padding: 20px;
    }

    .carousel-content h3 {
        font-size: 1.2em;
    }

    .carousel-content p {
        font-size: 0.85em;
        -webkit-line-clamp: 2;
    }

    .carousel-meta {
        font-size: 0.8em;
    }

    .news-image-mobile {
        width: 30vw;
        height: 30vw;
    }

    .news-title-mobile {
        font-size: 14px;
    }

    .featured-title,
    .fresh-title {
        font-size: 1em;
    }

    .featured-summary,
    .fresh-summary {
        font-size: 0.85em;
    }
}

/* Very small devices */
@media (max-width: 375px) {
    .main-container {
        padding: 0 5px;
    }

    .content {
        padding: 10px;
    }

    .carousel-card {
        height: 220px;
    }

    .carousel-content {
        padding: 15px;
    }

    .carousel-content h3 {
        font-size: 1em;
        line-height: 1.2;
    }

    .carousel-content p {
        font-size: 0.8em;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hot-label,
    .fresh-label,
    .news-label {
        font-size: 1em;
        padding: 10px;
    }

    .news-image-mobile {
        width: 25vw;
        height: 25vw;
        min-width: 80px;
        min-height: 80px;
    }

    .news-title-mobile {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .news-item-mobile {
        padding: 8px;
        gap: 8px;
    }
}

@media (min-width: 769px) {
    .mobile-ad {
        display: none;
    }
}
