/* Bulletin Board Style for Announcements - University Theme */

/* Ensure primary color variable */
:root {
    --primary-color: #8a2432;
}

.announcements-board-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

.bulletin-board {
    background: #8a2432; /* Üniversite bordo rengi */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(138, 36, 50, 0.3),
                inset 0 -3px 15px rgba(0,0,0,0.3),
                inset 0 2px 5px rgba(255,255,255,0.1);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    border: 3px solid #6b1e2a;
    overflow: visible;
}

/* Board Header */
.board-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.board-frame-top {
    background: linear-gradient(180deg, #6b1e2a 0%, #751f2b 100%);
    padding: 25px 40px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.board-frame-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.02) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.board-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.board-title h2 {
    color: #FFF;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5),
                 0 0 30px rgba(255,255,255,0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.board-title i {
    color: #FFD700;
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Cork Texture Background */
.board-content {
    position: relative;
    min-height: 500px;
    overflow: visible;
}

.cork-texture {
    background: 
        repeating-linear-gradient(
            45deg,
            #D2691E,
            #D2691E 2px,
            #CD853F 2px,
            #CD853F 4px
        ),
        repeating-linear-gradient(
            -45deg,
            #DEB887,
            #DEB887 2px,
            #F4A460 2px,
            #F4A460 4px
        ),
        linear-gradient(180deg, #D2691E 0%, #8B4513 100%);
    background-blend-mode: multiply;
    padding: 40px;
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.cork-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.03) 2px, transparent 2px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
}

/* Announcements Grid */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 5;
    padding: 30px;
}

/* Bulletin Notes */
.bulletin-note {
    background: #FFFEF5;
    padding: 30px 25px 25px;
    border-radius: 3px;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.25),
        0 2px 5px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.bulletin-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #e74c3c,
        #e74c3c 10px,
        #c0392b 10px,
        #c0392b 20px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bulletin-note:hover::before {
    opacity: 1;
}

.bulletin-note::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.bulletin-note:hover {
    transform: scale(1.08) rotate(0deg) !important translateY(-10px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.35),
        0 5px 15px rgba(0,0,0,0.2);
    z-index: 20;
    cursor: pointer;
}

/* Note Color Variations */
.note-yellow { 
    background: linear-gradient(135deg, #FFFEF5 0%, #FFF9E6 100%);
    border-left: 4px solid #FFC107;
}
.note-white { 
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-left: 4px solid #6C757D;
}
.note-pink { 
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE4E1 100%);
    border-left: 4px solid #E91E63;
}
.note-blue { 
    background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 100%);
    border-left: 4px solid #2196F3;
}
.note-green { 
    background: linear-gradient(135deg, #F5FFFA 0%, #F0FFF0 100%);
    border-left: 4px solid #4CAF50;
}

/* Rotation Classes */
.rotate-left { transform: rotate(-2deg); }
.rotate-right { transform: rotate(2deg); }
.rotate-slight-left { transform: rotate(-1deg); }
.rotate-slight-right { transform: rotate(1deg); }
.rotate-none { transform: rotate(0deg); }

/* Featured Note */
.featured-note {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFECB3 100%);
    border: 2px solid #FFB300;
    box-shadow: 
        0 0 30px rgba(255,193,7,0.4),
        0 8px 20px rgba(0,0,0,0.25);
}

/* Push Pins */
.pin {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    z-index: 25;
}

.pin::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 35% 35%, #ff4444, #cc0000);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 
        2px 2px 8px rgba(0,0,0,0.4),
        inset -2px -2px 4px rgba(0,0,0,0.2),
        inset 2px 2px 4px rgba(255,255,255,0.3);
}

.pin::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    filter: blur(2px);
}

.pin-blue::before { background: radial-gradient(circle at 35% 35%, #4488ff, #0066cc); }
.pin-yellow::before { background: radial-gradient(circle at 35% 35%, #ffdd44, #cc9900); }
.pin-green::before { background: radial-gradient(circle at 35% 35%, #44ff44, #00cc00); }

/* Note Content */
.note-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px dashed rgba(0,0,0,0.15);
    position: relative;
}

.note-date {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    background: rgba(138, 36, 50, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.note-content {
    flex: 1;
    position: relative;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.bulletin-note:hover .note-title {
    color: var(--primary-color);
}

.note-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Oxygen', sans-serif;
}

.note-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    background: rgba(138, 36, 50, 0.08);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.note-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 36, 50, 0.2), transparent);
    transition: left 0.5s ease;
}

.note-link:hover::before {
    left: 100%;
}

.note-link:hover {
    background: rgba(138, 36, 50, 0.15);
    transform: translateX(3px);
    color: #751f2b;
}

/* Featured Ribbon */
.featured-ribbon {
    position: absolute;
    top: 25px;
    right: -35px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 8px 45px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    z-index: 22;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.featured-ribbon::before,
.featured-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    border-style: solid;
    border-color: #cc8800 transparent transparent transparent;
}

.featured-ribbon::before {
    left: 0;
    border-width: 0 0 8px 8px;
}

.featured-ribbon::after {
    right: 0;
    border-width: 0 8px 8px 0;
}

/* Tape Effects */
.tape {
    position: absolute;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
    opacity: 0.9;
    z-index: 20;
}

.tape::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.03) 3px,
        rgba(0,0,0,0.03) 6px
    );
}

.tape-top {
    top: -12px;
    left: 25%;
    width: 70px;
    height: 28px;
    transform: rotate(-3deg);
}

.tape-bottom {
    bottom: -12px;
    right: 25%;
    width: 70px;
    height: 28px;
    transform: rotate(3deg);
}

.tape-diagonal {
    top: 15px;
    right: -25px;
    width: 90px;
    height: 28px;
    transform: rotate(45deg);
}

/* Board Decorations */
.board-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.decoration-item {
    position: absolute;
    transition: all 0.3s ease;
    z-index: 15;
}

.sticker {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.3);
    border: 2px solid rgba(0,0,0,0.1);
}

.sticker i {
    font-size: 1.8rem;
    color: #333;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.sticker-1 {
    top: 10px;
    left: 10px;
    transform: rotate(-20deg);
    animation: float-sticker 6s ease-in-out infinite;
}

.sticker-2 {
    bottom: 20px;
    right: 20px;
    transform: rotate(15deg);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    animation: float-sticker 8s ease-in-out infinite reverse;
}

@keyframes float-sticker {
    0%, 100% { transform: translateY(0) rotate(-20deg); }
    50% { transform: translateY(-10px) rotate(-15deg); }
}

.sticker-2 i {
    color: white;
}

.post-it {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    padding: 12px 25px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-8deg);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    border-radius: 3px;
    position: relative;
}

.post-it::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.post-it-1 {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    animation: swing-postit 4s ease-in-out infinite;
}

@keyframes swing-postit {
    0%, 100% { transform: translateX(-50%) rotate(-8deg); }
    50% { transform: translateX(-50%) rotate(-5deg); }
}

/* Board Footer */
.board-footer {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.btn-all-announcements {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6b1e2a 0%, #8a2432 100%);
    color: white;
    padding: 18px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(138, 36, 50, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-all-announcements::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-all-announcements:hover::before {
    left: 100%;
}

.btn-all-announcements:hover {
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(138, 36, 50, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-all-announcements i {
    font-size: 1.3rem;
}

/* Announcement Modal */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-modal.show {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #8a2432 0%, #6b1e2a 100%);
    color: white;
    padding: 30px 60px 30px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
    color: white;
    padding-right: 20px;
}

.modal-date {
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.modal-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.modal-content-text p {
    margin-bottom: 20px;
}

.modal-footer {
    padding: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tag {
    background: rgba(138, 36, 50, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #751f2b 100%);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 36, 50, 0.3);
}

.modal-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
}

.modal-btn-secondary:hover {
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .bulletin-board {
        padding: 15px;
        border-radius: 15px;
    }
    
    .board-frame-top {
        padding: 20px;
    }
    
    .board-title h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .board-title i {
        font-size: 1.5rem;
    }
    
    .cork-texture {
        padding: 20px 15px;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .bulletin-note {
        min-height: 240px;
    }
    
    .board-decorations {
        display: none;
    }
    
    .btn-all-announcements {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}