/*
======================
    INFO CONTAINER
======================
*/
.info-container {
    display: flex;
    max-width: 70%;
    margin: 30px auto 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.info-main-section {
    width: 75%;
    padding: 20px;
    border-right: 2px solid #7904A8;
}

.info-right-section {
    width: 25%;
    padding: 20px 15px;
}

/*
======================
    SERVER DETAILS
======================
*/
.server-details {
    background-color: #10178D;
    margin: 20px 30px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(16, 23, 141, 0.4);
}

.server-details h3 {
    color: #fff;
    margin-bottom: 20px;
}

.server-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(121, 4, 168, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.server-details-row:last-of-type {
    border-bottom: none;
}

.server-details-row:hover {
    background-color: rgba(121, 4, 168, 0.3);
    transform: scale(1.02);
    border-radius: 8px;
}

.server-details-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 2;
    color: #c8d0ff;
    font-size: 17px;
    font-weight: bold;
}

.server-details-label svg {
    flex-shrink: 0;
    stroke: #9E32C8;
}

.server-details-value {
    flex: 1;
    text-align: right;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.server-details-value.svg-check svg {
    stroke: #00e676;
}

.server-details-value.svg-cross svg {
    stroke: #ff1744;
}

.server-details-value .inline-check {
    stroke: #00e676;
}

/*
=============
    RULES
=============
*/
.rules-list {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin: 20px 10px;
}

.rules-list h3 {
    margin-bottom: 10px;
}

.rules-list > span {
    display: block;
    text-align: center;
    color: #7904A8;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.rule {
    position: relative;
    min-height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(121, 4, 168, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.rule:hover {
    border-color: #7904A8;
}

.rule-text {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #0F1246;
    text-align: center;
    transition: opacity 0.2s ease;
}

.punishment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(121, 4, 168, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rule:hover .punishment {
    opacity: 1;
}

.rule:hover .rule-text {
    opacity: 0;
}

.message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding: 10px;
}

/*
================
    DROPLIST
================
*/
.droplist-section {
    padding: 20px 10px;
}

.droplist-section h2 {
    margin-bottom: 10px;
}

.droplist-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #7904A8;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.droplist-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.droplist-legend svg {
    stroke: #7904A8;
    flex-shrink: 0;
}

.droplist-map {
    margin-bottom: 10px;
}

.map-toggle {
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.map-toggle:hover {
    background-color: rgba(121, 4, 168, 0.15);
}

.map-toggle h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #10178D;
    font-size: 22px;
    margin: 0;
    padding: 10px;
}

.map-toggle h5 svg {
    stroke: #7904A8;
    flex-shrink: 0;
}

.droplist-list {
    display: none;
    border-top: 1px solid rgba(121, 4, 168, 0.3);
    margin-top: 4px;
}

.droplist-list.expanded {
    display: block;
}

.droplist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: bold;
    color: #10178D;
    border-bottom: 1px solid rgba(158, 50, 200, 0.2);
    position: relative;
    transition: background-color 0.2s ease;
}

.droplist-item:hover {
    background-color: rgba(121, 4, 168, 0.1);
    border-radius: 6px;
}

.droplist-item .icon-boss {
    stroke: gold;
    flex-shrink: 0;
}

.drop-percent {
    margin-left: auto;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/*
=====================
    ENCHANT RATES
=====================
*/
.enchant-rates {
    display: flex;
    gap: 20px;
    margin: 20px 10px;
    flex-wrap: wrap;
}

.armor-enchant,
.weapon-enchant {
    flex: 1;
    min-width: 260px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(16, 23, 141, 0.15);
}

.armor-enchant h5,
.weapon-enchant h5 {
    color: #7904A8;
    font-size: 20px;
    margin-bottom: 16px;
}

.armor-enchant table,
.weapon-enchant table {
    width: 100%;
    border-collapse: collapse;
}

.enchant-rates th {
    color: #9E32C8;
    font-size: 16px;
    padding-bottom: 10px;
    text-align: left;
}

.enchant-rates th:last-child,
.enchant-rates td:last-child {
    text-align: right;
}

.enchant-rates td {
    color: #10178D;
    font-size: 16px;
    padding: 6px 4px;
    font-weight: bold;
    border-bottom: 1px solid rgba(158, 50, 200, 0.15);
}

.enchant-rates tbody tr:last-child td {
    border-bottom: none;
}

.enchant-rates tbody tr:hover {
    background-color: rgba(121, 4, 168, 0.08);
    transition: background-color 0.2s ease;
}

.enchant-rates td.success-rate {
    color: #28a745;
    font-weight: bold;
}

/*
===================
    QUEST GUIDE
===================
*/
.quest-section {
    padding: 10px;
}

.quest-section h3 {
    margin-bottom: 20px;
}

.quest-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(121, 4, 168, 0.3);
}

.quest-name-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(16, 23, 141, 0.08);
    color: #10178D;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(121, 4, 168, 0.2);
    transition: background-color 0.2s ease;
    gap: 10px;
}

.quest-name-toggle:hover {
    background-color: rgba(121, 4, 168, 0.15);
}

.quest-name-toggle span:last-child {
    flex-shrink: 0;
    font-size: 15px;
    color: #7904A8;
}

.quest-details {
    display: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
}

.quest-details table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.quest-details td {
    padding: 8px 10px;
    font-size: 15px;
    font-weight: bold;
    color: #0F1246;
    border: 1px solid rgba(158, 50, 200, 0.25);
    vertical-align: top;
    background-color: #F9F9F9;
    word-wrap: break-word;
}

.quest-details tr:hover td {
    background-color: rgba(158, 50, 200, 0.08);
}

/*
================
    BOSS LOG
================
*/
.boss-timer-list {
    list-style: none;
    margin: 20px 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 23, 141, 0.2);
}

.boss-list-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #7904A8;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.boss-list-header span {
    flex: 1;
    text-align: center;
}

.boss-list-header .boss-label {
    text-align: left;
}

.boss-list-header .last-kill {
    text-align: right;
}

.boss-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(121, 4, 168, 0.25);
    background-color: rgba(255, 255, 255, 0.7);
    transition: background-color 0.2s ease, transform 0.2s ease;
    min-height: 50px;
}

.boss-row:last-child {
    border-bottom: none;
}

.boss-row:hover {
    background-color: rgba(121, 4, 168, 0.1);
    transform: scale(1.01);
}

.boss-name {
    flex: 1;
    text-align: left;
    font-weight: bold;
    color: #10178D;
    font-size: 16px;
}

.countdown-timer {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.status-countdown {
    color: #f5a623;
}

.status-spawned {
    color: #00e676;
}

.last-killed-by {
    flex: 1;
    text-align: right;
    font-style: italic;
    font-weight: bold;
    color: #cc4621;
    font-size: 15px;
}

/*
================================
    RESPONSIVE - SMALL PHONE
================================
*/
@media only screen and (max-width: 480px) {
    .info-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        margin-top: 10px;
    }

    .info-main-section,
    .info-right-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #7904A8;
    }

    .info-right-section {
        border-bottom: none;
    }

    .server-details {
        margin: 10px 0;
    }

    .server-details-label,
    .server-details-value {
        font-size: 14px;
    }

    .rules-list {
        padding: 10px;
    }

    .rule-text,
    .punishment {
        font-size: 13px;
    }

    .droplist-legend {
        gap: 10px;
        font-size: 13px;
    }

    .map-toggle h5 {
        font-size: 16px;
    }

    .droplist-item {
        font-size: 14px;
    }

    .enchant-rates {
        flex-direction: column;
    }

    .armor-enchant,
    .weapon-enchant {
        min-width: unset;
    }

    .enchant-rates th,
    .enchant-rates td {
        font-size: 13px;
    }

    .quest-name-toggle {
        font-size: 14px;
    }

    .quest-details td {
        font-size: 13px;
    }

    .boss-list-header,
    .boss-row {
        font-size: 13px;
        padding: 8px 10px;
    }

    .boss-name,
    .countdown-timer,
    .last-killed-by {
        font-size: 13px;
    }

}

/*
===========================
    RESPONSIVE - MOBILE
===========================
*/
@media only screen and (max-width: 768px) {
    .info-container {
        flex-direction: column;
        max-width: 95%;
    }

    .info-main-section,
    .info-right-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #7904A8;
    }

    .info-right-section {
        border-bottom: none;
    }

    .server-details {
        margin: 15px 0;
    }

    .server-details-label,
    .server-details-value {
        font-size: 15px;
    }

    .rule {
        min-height: 60px;
    }

    .map-toggle h5 {
        font-size: 18px;
    }

    .droplist-item {
        font-size: 16px;
    }

    .enchant-rates {
        flex-direction: column;
    }

    .armor-enchant,
    .weapon-enchant {
        min-width: unset;
    }

    .quest-name-toggle {
        font-size: 16px;
    }

    .boss-list-header,
    .boss-row {
        font-size: 14px;
        padding: 10px 12px;
    }

    .boss-name,
    .countdown-timer,
    .last-killed-by {
        font-size: 14px;
    }

}

/*
===========================
    RESPONSIVE - TABLET
===========================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .info-container {
        max-width: 95%;
    }

    .info-main-section {
        width: 70%;
    }

    .info-right-section {
        width: 30%;
    }

    .server-details {
        margin: 15px 10px;
    }

    .server-details-label,
    .server-details-value {
        font-size: 16px;
    }

    .enchant-rates th,
    .enchant-rates td {
        font-size: 15px;
    }

    .quest-name-toggle {
        font-size: 17px;
    }

    .boss-list-header,
    .boss-row {
        font-size: 15px;
    }
}