/* ==========================================================================
   HaxScipt - Kurallar ve Cezalar Tasarımı (Rules.css)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url("../İmages/BG.png");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-color: #0e0e10;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== UNIFIED HEADER & NAVBAR ==================== */
.navbar {
    width: 100%;
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-container {
    width: 90%;
    max-width: 1350px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 64px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: 55px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a.active {
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.24), 0 0 14px rgba(255, 255, 255, 0.233);
    color: #ffffff;
}

.nav-links a:hover {
    color: #ffea62;
}

/* BUTTONS */
.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons a {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.25s ease;
}

.login-btn {
    border: 2px solid #ffd84d;
    color: #ffd84d;
    background: transparent;
}

.login-btn:hover {
    color: black;
    background-color: #ffea62;
}

.register-btn {
    border: 2px solid #ffd84d;
    background-color: #ffd84d;
    color: black;
}

.register-btn:hover {
    border: 2px solid #ffd84d;
    color: #ffd84d;
    background: transparent;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* ==================== RULES MAIN CONTAINER ==================== */
.rules-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 150px auto 50px;
    padding: 0 24px;
    flex: 1;
}

.rules-hero {
    text-align: center;
    margin-bottom: 25px;
}

.rules-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.rules-subtitle {
    font-size: 14.5px;
    color: #a0a0ab;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==================== TABS NAV ==================== */
.rules-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}

.rules-tab-btn {
    background: rgba(18, 18, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0ab;
    padding: 12px 28px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.rules-tab-btn:hover {
    color: #ffd84d;
    border-color: rgba(255, 216, 77, 0.3);
    transform: translateY(-2px);
}

.rules-tab-btn.active {
    background: linear-gradient(135deg, #ffd84d, #ffa502);
    color: #000;
    border-color: #ffd84d;
    box-shadow: 0 4px 20px rgba(255, 216, 77, 0.4);
}

/* Tab Content Toggle */
.rules-tab-content {
    display: none;
}

.rules-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== SEVERITY LEGEND BOX ==================== */
.severity-legend-box {
    background: rgba(18, 18, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.legend-header {
    text-align: center;
    margin-bottom: 20px;
}

.legend-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffd84d;
    margin-bottom: 4px;
}

.legend-header p {
    font-size: 13px;
    color: #888894;
}

/* 5 Steps Severity Scale */
.severity-scale {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.sev-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    user-select: none;
}

.sev-dot {
    font-size: 20px;
}

.sev-info strong {
    display: block;
    font-size: 12.5px;
    color: #fff;
}

.sev-info small {
    font-size: 11px;
    color: #888894;
}

.sev-arrow {
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

/* Filter & Search Bar */
.rules-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    width: 100%;
}

.search-wrap input::placeholder {
    color: #777;
}

.sev-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0ab;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffd84d;
    color: #000;
    border-color: #ffd84d;
    font-weight: 700;
}

/* ==================== RULES CARDS GRID ==================== */
.rules-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

.rule-card {
    background: rgba(18, 18, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.rule-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
    align-self: flex-start;
}

.rule-text {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.penalty-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ffd84d;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Seviye Özel Renkleri */
.rule-card.level-yellow { border-left: 4px solid #ffd84d; }
.rule-card.level-yellow .rule-badge { background: rgba(255, 216, 77, 0.15); color: #ffd84d; border: 1px solid rgba(255, 216, 77, 0.3); }

.rule-card.level-orange { border-left: 4px solid #ffa502; }
.rule-card.level-orange .rule-badge { background: rgba(255, 165, 2, 0.15); color: #ffa502; border: 1px solid rgba(255, 165, 2, 0.3); }

.rule-card.level-brown { border-left: 4px solid #b7791f; }
.rule-card.level-brown .rule-badge { background: rgba(183, 121, 31, 0.2); color: #e2a03f; border: 1px solid rgba(183, 121, 31, 0.4); }

.rule-card.level-red { border-left: 4px solid #ff4757; }
.rule-card.level-red .rule-badge { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }
.penalty-tag.red-tag { color: #ff4757; border-color: rgba(255, 71, 87, 0.3); background: rgba(255, 71, 87, 0.08); }

.rule-card.level-black { border-left: 4px solid #ffffff; background: rgba(12, 12, 16, 0.95); }
.rule-card.level-black .rule-badge { background: #ff4757; color: #fff; }
.penalty-tag.black-tag { color: #fff; border-color: #ff4757; background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(0, 0, 0, 0.4)); }

/* ==================== SERVER & DISCORD RULES ==================== */
.server-rules-container {
    background: rgba(18, 18, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.server-rules-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
    margin-bottom: 25px;
    text-align: center;
}

.server-rules-header h2 {
    font-size: 24px;
    color: #ffd84d;
    font-weight: 800;
}

.server-rules-header p {
    font-size: 13.5px;
    color: #888894;
    margin-top: 4px;
}

.server-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.server-rule-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.25s ease;
}

.server-rule-item:hover {
    background: rgba(255, 216, 77, 0.03);
    border-color: rgba(255, 216, 77, 0.3);
    transform: translateY(-2px);
}

.server-rule-item.highlight-rule {
    border-color: rgba(255, 71, 87, 0.4);
    background: rgba(255, 71, 87, 0.04);
}

.server-rule-item .rule-num {
    font-size: 20px;
    font-weight: 900;
    color: #ffd84d;
    opacity: 0.8;
    line-height: 1;
}

.server-rule-item .rule-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.server-rule-item .rule-body p {
    font-size: 13px;
    color: #a0a0ab;
    line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #000000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888894;
    font-size: 14px;
    font-weight: 600;
}

.footer-logo {
    width: 80px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links a {
    color: #888894;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.social-links a:hover {
    color: #ffd84d;
}

.footer-right {
    font-size: 13px;
    color: #888894;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(11, 11, 14, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .rules-cards-grid {
        grid-template-columns: 1fr;
    }

    .severity-scale {
        flex-direction: column;
        align-items: stretch;
    }

    .sev-arrow {
        display: none;
    }
}
