/*     SKRITAVLAST.COM Style Sheet
    --------------------------------------------------------------
	Style name:            skritavlast (the default skritaflat 3.3.15 style)
	Based on style:         @skritavlast (the default skritaflat 3.3.15 style)
	Original author:	Tom Beddard ( http://www.subblue.com/ )
	Modified by:		skritavlast.com Limited ( https://www.skritavlast.com/ )
    --------------------------------------------------------------
*/

/* Header block with images */

/* Header */
header {
    background-color: #0f0f0f;
    border-bottom: 2px solid #ff4757;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    position: relative;
    z-index: 50;
}

.parallax {
    background-image: url('https://i.imgur.com/5yOO6L7.jpeg'); /* фонът */
    background-attachment: fixed; /* паралакс ефект при скрол */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Може да добавиш плавно движение при скрол */
.parallax::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit;
    transform: translateZ(0);
}

/* Container flex */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo */
header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff4757;
    letter-spacing: 1px;
}

/* Navigation menu */
header nav {
    display: flex;
    gap: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

header nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

header nav a i {
    margin-right: 0.3rem;
}

header nav a:hover {
    color: #ff4757;
    transform: translateY(-2px);
}

/* User buttons on the far right */
header .user-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

header .user-buttons button {
    background-color: #ff4757;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.875rem;
}

header .user-buttons button i {
    margin-right: 0.3rem;
}

header .user-buttons button:hover {
    background-color: #ff3838;
    transform: translateY(-2px);
}

/* Hamburger for mobile */
header #mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile adjustments */
@media screen and (max-width: 1024px) {
    header nav {
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    /* Hide desktop nav */
    header nav {
        display: none;
    }

    /* Show hamburger */
    header #mobile-menu-button {
        display: block;
    }

    header .user-buttons {
        gap: 0.3rem;
    }

    header .user-buttons button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Mobile menu */
#mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 40;
    border-top: 2px solid #ff4757;
}

#mobile-menu a {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

#mobile-menu a:hover {
    color: #ff4757;
}

/* Принудително body и html да заемат цялата височина */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* тъмният фон на сайта */
}

/* Основен контейнер, който заема цялата височина */
#main-content {
    min-height: calc(100vh - 100px); /* извади височината на футера ако е ~100px */
}

/* Footer */
footer {
    background-color: #0f0f0f;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid #ff4757;
}
/* Glow effect */
.hover\:glow:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transition: text-shadow 0.3s ease, color 0.3s ease;
}
   .hover\:shadow-accent:hover {
        box-shadow: 0 0 15px 3px rgba(255, 71, 87, 0.6); /* червен glow */
    }

/* Банер в долния десен ъгъл на футера */
.footer-banner-container {
    position: relative; /* футера като родител */
}

.footer-banner {
    position: absolute;   /* позиционираме спрямо футера */
    bottom: 50px;         /* леко отдалечаваме от долния край (по-нагоре) */
    right: 10px;    /* 10px от десния край = леко на ляво */
    left: auto;           /* не се премества отляво */
    width: 470px;         /* фиксирана ширина */
    height: 72px;         /* фиксирана височина */
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-banner:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px 3px rgba(255, 71, 87, 0.6);
}

/* ============================= */
/* Articles Cards Hover & Animation */
/* ============================= */

/* Основен glow ефект за картите */
.glow-on-hover {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    transform: translateY(-5px); /* леко издигане при hover */
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4), 0 6px 10px rgba(255, 71, 87, 0.25);
}

/* Fade-in-up анимация при зареждане */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link hover - glow effect за "Прочети повече" */
a.hover-glow {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a.hover-glow:hover {
    color: #ff4757; /* accent color */
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.7);
}

/* Оптимизация за изображенията в картите */
.glow-on-hover img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 1rem; /* същото като в HTML */
}

.glow-on-hover:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}
