

/* Page Header */
.announcement-page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: none;
    padding: 40px 0 50px;
    margin-bottom: 50px;
    border-radius: 16px;
    box-shadow: var(--primary-shadow, 0 3px 10px rgba(0, 0, 0, 0.45));
    position: relative;
    overflow: hidden;
}

/* Header pattern overlay */
.announcement-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.announcement-page-header .container {
    position: relative;
    z-index: 1;
}

.page-title-minimal {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

    .page-title-minimal i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 55px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        color: white;
        border-radius: 14px;
        font-size: 1.6rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .page-title-minimal i:hover {
        transform: scale(1.1) rotate(5deg);
        background: rgba(255, 255, 255, 0.3);
    }

.page-subtitle-minimal {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding-left: 70px;
}

/*.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: white;
    font-size: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.title-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}*/

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}
/* Announcement Cards - Premium Hover Effects */
.announcement-card {
    border: none;
    background-color: var(--card-bg);
    border-left: 2px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .announcement-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) 0%, rgba(var(--secondary-color-rgb, 108, 117, 125), 0.05) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .announcement-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border-left-width: 0px;
        border-left-color: var(--secondary-color);
    }

        .announcement-card:hover::before {
            opacity: 1;
        }

/* Icon Animation */
.announcement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-card:hover .announcement-icon {
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* New Badge Animation */
.new-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Meta Info */
.announcement-meta {
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.announcement-card:hover .announcement-meta {
    color: var(--secondary-color);
}

/* Content Styling */
.announcement-content {
    color: var(--card-text);
    line-height: 1.8;
    transition: all 0.3s ease;
}

/* Card Title Hover */
.card-title {
    transition: color 0.3s ease;
}

.announcement-card:hover .card-title {
    color: var(--primary-color);
}

/* ===== PREMIUM ANNOUNCEMENT MODAL ===== */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .announcement-modal.active {
        display: flex;
    }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-custom {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05), rgba(var(--secondary-color-rgb, 108, 117, 125), 0.05));
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.modal-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: iconRotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconRotate {
    from {
        transform: rotate(-180deg) scale(0);
    }

    to {
        transform: rotate(0deg) scale(1);
    }
}

.modal-header-content {
    flex: 1;
    min-width: 0;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
}

.modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

    .modal-meta i {
        color: var(--primary-color);
    }

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .modal-close-btn:hover {
        background: rgba(255, 0, 0, 0.1);
        color: #dc3545;
        transform: rotate(90deg);
    }

.modal-body-custom {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

    .modal-body-custom::-webkit-scrollbar {
        width: 8px;
    }

    .modal-body-custom::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .modal-body-custom::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

        .modal-body-custom::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
        }

    .modal-body-custom p {
        margin-bottom: 1rem;
    }

    .modal-body-custom ul,
    .modal-body-custom ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-body-custom h1,
    .modal-body-custom h2,
    .modal-body-custom h3,
    .modal-body-custom h4,
    .modal-body-custom h5,
    .modal-body-custom h6 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-color);
        font-weight: 700;
    }

    .modal-body-custom strong,
    .modal-body-custom b {
        font-weight: 700;
    }

    /* Modal içindeki görseller için otomatik boyutlandırma */
    .modal-body-custom img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1rem 0;
        display: block;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Görsele tıklanabilirlik ve hover efekti */
    .modal-body-custom img:hover {
        cursor: pointer;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        transform: scale(1.01);
        transition: all 0.3s ease;
    }

    /* Video ve iframe için responsive boyutlandırma */
    .modal-body-custom iframe,
    .modal-body-custom video {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1rem 0;
    }

    .modal-body-custom .ratio {
        margin: 1rem 0;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Tablo responsive */
    .modal-body-custom table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
    }

    .modal-body-custom table th,
    .modal-body-custom table td {
        padding: 0.75rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .modal-body-custom table th {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
    }

/* Premium Pagination Buttons */
.premium-page-link {
    position: relative;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

    .premium-page-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        z-index: -1;
    }

    .premium-page-link:hover {
        color: white;
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

        .premium-page-link:hover::before {
            width: 200%;
            height: 200%;
        }

.page-item.active .premium-page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-item.disabled .premium-page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-height: 90vh;
        border-radius: 15px;
    }

    .modal-header-custom {
        padding: 20px;
        flex-wrap: wrap;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-body-custom {
        padding: 20px;
        font-size: 0.95rem;
    }

    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
}

/* Smooth Animations */
html {
    scroll-behavior: smooth;
}

.bx-shdw {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Attachment Indicators */
.attachment-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Modal Gallery Section */
.modal-gallery-section,
.modal-files-section {
    /*padding: 20px 30px;*/
    border-top: 1px solid rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
}

.modal-section-header {
    margin-bottom: 10px;
}

    .modal-section-header h5 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        color: var(--text-color);
        font-weight: 700;
    }

        .modal-section-header h5 i {
            color: #667eea;
        }

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-width: 100%;
}

.modal-gallery-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 80px;
    max-height: 80px;
}

    .modal-gallery-item:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .modal-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .modal-gallery-item .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(102, 126, 234, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .modal-gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

    .modal-gallery-item .gallery-overlay i {
        color: white;
        font-size: 1rem;
    }

.modal-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .modal-file-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

.modal-file-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.2));
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

    .modal-file-icon i {
        font-size: 1.3rem;
        color: #0d6efd;
    }

.modal-file-info {
    flex: 1;
    min-width: 0;
}

.modal-file-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-file-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.modal-file-download {
    flex-shrink: 0;
}

/* ========== LIGHTBOX ========== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

    .gallery-lightbox.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 80px 100px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

    .lightbox-close:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 70vh;
    position: relative;
}

    .lightbox-image-container img {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.lightbox-counter {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    opacity: 0.6;
}

    .lightbox-thumbnail:hover,
    .lightbox-thumbnail.active {
        border-color: #667eea;
        opacity: 1;
    }

    .lightbox-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 768px) {
    .modal-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .modal-gallery-item {
        max-width: 60px;
        max-height: 60px;
    }

    .lightbox-content {
        padding: 60px 20px 120px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-thumbnail {
        width: 50px;
        height: 50px;
    }
}


