/* ========================================
   NEW FEATURES STYLES
   ======================================== */

/* Announcements Section */
.announcements-section {
    margin-bottom: 3rem;
}

.announcement {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.5s;
}

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

.announcement.type-info {
    border-left-color: var(--secondary-color);
}

.announcement.type-success {
    border-left-color: var(--primary-color);
}

.announcement.type-warning {
    border-left-color: #f39c12;
}

.announcement.type-error {
    border-left-color: var(--accent-color);
}

.announcement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.announcement-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.announcement-text p {
    margin: 0;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-container i.fa-search {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 4rem 1rem 4rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    transition: all 0.3s;
}

.clear-search.show {
    display: block;
}

.clear-search:hover {
    color: var(--accent-color);
}

/* Content Pages (FAQ, Rules) */
.content-page {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    font-family: var(--minecraft-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(46, 204, 113, 0.05);
}

.faq-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer-content p {
    margin: 0;
}

.faq-answer-content strong {
    color: var(--primary-color);
}

/* Rules Styles */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rules-category {
    margin-bottom: 2rem;
}

.rules-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.rule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.rule-item.severity-low {
    border-left-color: var(--secondary-color);
}

.rule-item.severity-medium {
    border-left-color: #f39c12;
}

.rule-item.severity-high {
    border-left-color: #e67e22;
}

.rule-item.severity-critical {
    border-left-color: var(--accent-color);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rule-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rule-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.rule-severity.severity-low {
    background: rgba(52, 152, 219, 0.2);
    color: var(--secondary-color);
}

.rule-severity.severity-medium {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.rule-severity.severity-high {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.rule-severity.severity-critical {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-color);
}

.rule-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rule-description p {
    margin: 0;
}

.rule-penalty {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
}

.rule-penalty strong {
    color: var(--accent-color);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.05);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Settings Card */
.settings-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
}

.settings-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.success-message {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Select Input Styling */
select {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--main-font);
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8bcc8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

select option {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }

    #searchInput {
        padding: 0.875rem 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .announcement {
        flex-direction: column;
    }

    .announcement-icon {
        font-size: 1.5rem;
    }

    .admin-tabs {
        gap: 0.5rem;
    }

    .admin-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .rule-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
