/* --- MODERN NOTIFICATION BANNER --- */
.announcement-bar {
    background: var(--primary);
    /* Electric Coral */
    color: var(--white);
    padding: 0.8rem 1rem;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.announcement-text {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 2rem;
    text-align: center;
}

.ann-close-btn {
    position: absolute;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.ann-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* --- MODERN TIMELINE FEED (Duyurular Page) --- */
.timeline-feed {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline Line */
.timeline-feed::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--gray);
    z-index: 0;
}

.ann-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    margin-left: 50px;
    /* Space for timeline */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ann-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Timeline Dot */
.ann-card::before {
    content: '';
    position: absolute;
    left: -41px;
    /* Adjust to hit the line */
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-body);
    /* Gap effect */
}

.ann-date {
    display: inline-block;
    background: var(--light);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid var(--gray);
}

.ann-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* --- DARK MODE TOGGLE BUTTON --- */
#darkModeToggle {
    width: 45px;
    /* Slightly larger for touch targets */
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#darkModeToggle i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

#darkModeToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--light);
}

#darkModeToggle:active {
    transform: translateY(0) scale(0.95);
}

/* Dark Mode Styles for the Button */
[data-theme="dark"] #darkModeToggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent);
    /* Sun Color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #darkModeToggle:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    /* Glow effect */
}

[data-theme="dark"] #darkModeToggle i {
    transform: rotate(360deg);
    /* Spin the sun */
}

/* --- PRODUCT CARD IMAGE FIX --- */
.product-img-wrapper {
    position: relative;
    height: 280px;
    background: #ffffff !important;
    /* Force white background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Space around image */
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* Ensure whole image is seen */
    transition: transform 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
    /* Subtle shadow for depth */
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
    /* Gentle zoom */
}

/* --- ROUNDED SLIDER --- */
.main-slider {
    border-radius: 24px !important;
    /* Force rounded corners */
    overflow: hidden;
    /* Ensure images clip to the radius */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    /* Softer, deeper shadow */
}

.slider-wrapper {
    border-radius: 24px;
}