@import 'shared.css';

/* General body styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(
        rgba(26, 26, 26, 0.92), 
        rgba(26, 26, 26, 0.92)
    ), url('/rustimages/epicwolfbee.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f1f1f1;
    padding-bottom: 60px;
}

/* Header styling */
header {
    background-color: #232323;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #ff8c00;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    height: auto;
    transition: all 0.3s ease;
}

header h1 {
    margin: 0;
    color: #ff8c00;
    font-size: clamp(1.5em, 4vw, 2.5em);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section headers */
.latest-updates, .previous-updates {
    position: relative;
    color: #ff8c00;
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ff8c00;
}

/* Container for the content */
.container {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
    padding-top: max(80px, 12vh);
}

/* Changelog entry block styling */
.changelog-entry {
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.9), rgba(25, 25, 25, 0.9));
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff8c00;
    opacity: 0.8;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.changelog-entry:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.changelog-entry.open {
    margin: 25px -10px;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* Description styling */
.changelog-entry .description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 0;
    padding: 0;
    transform: translateY(-10px);
}

.changelog-entry.open .description {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
    margin: 15px 10px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Entry header styling */
.entry-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding-right: 15px;
}

/* Type badge styling */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-plugin {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.2);
}

.type-map {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.2);
}

.type-server {
    background: linear-gradient(135deg, #834d9b, #d04ed6);
    color: white;
    box-shadow: 0 4px 15px rgba(131, 77, 155, 0.2);
}

.type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.changelog-entry.open .type-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Date and title styling */
.date {
    color: #ccc;
    font-size: 0.9rem;
    margin: 8px 0;
}

.title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 10px 0;
    color: #fff;
    transition: all 0.3s ease;
}

.changelog-entry.open .title {
    color: #ff8c00;
    font-size: 1.5rem;
}

/* Scrollbar styling */
.description::-webkit-scrollbar {
    width: 8px;
}

.description::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.5);
    border-radius: 4px;
}

.description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Toggle button styling */
.toggle-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ffa640);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Visibility badge for admin-only entries */
.visibility-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-only {
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* No entries message */
.no-entries {
    text-align: center;
    padding: 2rem;
    background: rgba(35, 35, 35, 0.7);
    border-radius: 12px;
    border: 1px dashed rgba(255, 140, 0, 0.3);
    color: #ccc;
    font-size: 1.1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 15px;
        padding-top: max(70px, 10vh);
    }
    
    header {
        min-height: 60px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .changelog-entry {
        padding: 0.8rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .type-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .changelog-entry.open {
        margin: 15px 0;
        padding: 1.2rem;
    }
    
    .changelog-entry.open .description {
        padding: 15px;
    }
    
    .toggle-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    
    .container {
        padding-top: 60px;
    }
    
    .latest-updates, .previous-updates {
        font-size: 1.3rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .toggle-button {
        width: 100%;
    }
}
