/* Modern Announcements Page Styles - Haberler sayfasý stiline uygun */

/* Hero Section */
.announcements-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideInDown 0.8s ease-out;
}

/* Important Announcements Slider */
.important-announcements-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.slider-header {
    margin-bottom: 1.5rem;
}

    .slider-header h3 {
        color: white;
        font-weight: 600;
        margin: 0;
    }

.modern-carousel {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.announcement-slide {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    max-width: 60%;
}

.slide-category {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.slide-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.btn-slide-read {
    background: var(--default-button);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

    .btn-slide-read:hover {
        transform: translateY(-2px);
        box-shadow: var(--default-button-shadow-hover);
        color: white;
    }

.modern-indicators {
    bottom: 20px;
}

    .modern-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.5);
        margin: 0 5px;
        transition: all 0.3s ease;
    }

        .modern-indicators button.active {
            background: white;
            transform: scale(1.2);
        }

.modern-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .modern-control:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
        color: white;
    }

/* Search and Filter Section */
.search-filter-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.section-header {
    margin-bottom: 1.5rem;
}

    .section-header h4 {
        color: white;
        font-weight: 600;
        margin: 0;
    }

.filter-form {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
}

.form-control-modern {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 0 0 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

    .form-control-modern::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .form-control-modern:focus {
        border-color: var(--input-control-focus-color);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
    }

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--default-button);
    border: none;
    border-radius: 0 16px 16px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: scale(1.05);
    }

.form-select-modern {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
    width: 100%;
}

    .form-select-modern:focus {
        border-color: #667eea;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
    }

    .form-select-modern option {
        background: #2c3e50;
        color: white;
    }

/* Announcements Grid */
.announcements-grid-section {
    margin-bottom: 2rem;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.announcement-card-modern {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

    .announcement-card-modern:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.3);
    }

.announcement-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.announcement-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

    .announcement-category.important {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    }

    .announcement-category.featured {
        background: linear-gradient(135deg, #ffd93d 0%, #ff9800 100%);
        color: #333;
    }

.announcement-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

    .announcement-badge.expired {
        background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
        animation: pulse 2s infinite;
    }

.announcement-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.announcement-content {
    padding: 1.5rem;
    color: white;
}

.announcement-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.announcement-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.announcement-deadline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
    backdrop-filter: blur(5px);
}

    .announcement-deadline.expired {
        background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    }

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.btn-read-more {
    background: var(--gradient-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .btn-read-more:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
        color: white;
    }

/* Empty State */
.empty-state {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.btn-modern-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .btn-modern-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        color: white;
    }

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.modern-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1rem 2rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .page-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        color: white;
    }

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .page-number:hover,
    .page-number.active {
        background: var(--default-button);
        transform: scale(1.1);
        color: white;
    }

/* Sidebar Sections */
.latest-announcements-section,
.newsletter-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
    color: white;
    animation: slideInRight 0.8s ease-out;
}

.latest-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .latest-announcement-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }

.latest-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    height: fit-content;
    min-width: 3rem;
    text-align: center;
}

.latest-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: white;
}

.latest-category {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.25rem;
}

    .latest-category.important {
        background: rgba(255, 107, 107, 0.8);
        color: white;
    }

/* Newsletter Section */
.newsletter-section {
    text-align: center;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: var(--default-button);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.newsletter-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control-modern {
    border-radius: 12px;
    flex: 1;
}

.btn-modern-primary {
    background: var(--default-button);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

    .btn-modern-primary:hover {
        transform: scale(1.05);
        box-shadow: var(--default-button-shadow-hover);
    }

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .slide-content {
        max-width: 80%;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .latest-announcements-section,
    .newsletter-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-content,
    .important-announcements-section,
    .search-filter-section,
    .latest-announcements-section,
    .newsletter-section {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
    }

    .announcement-slide {
        height: 300px;
    }

    .slide-content {
        max-width: 100%;
        padding: 1.5rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modern-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .page-numbers {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .filter-form .row {
        flex-direction: column;
    }

    .search-input-group {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .form-control-modern {
        border-radius: 16px;
        margin-bottom: 0.5rem;
    }

    .search-btn {
        border-radius: 16px;
    }

    .latest-announcement-item {
        flex-direction: column;
        text-align: center;
    }

    .latest-time {
        align-self: center;
        margin-bottom: 0.5rem;
    }
}
