/**
 * Action Bar CSS - Player Controls
 * Project color scheme: #8a2128 (primary), #6e1a20 (hover)
 * Background: #18181b, Cards: #27272a
 */

/* ========== ACTION BAR CONTAINER ========== */
.action-bar-container {
    margin: 5px auto;
    max-width: 100%;
    overflow: visible;
    position: relative;
    z-index: 20;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1a1a1d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

/* Left Section */
.action-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

/* Right Section */
.action-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========== ACTION BUTTONS ========== */
.btn-action-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #8a2128;
    border: 1px solid #8a2128;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: none;
}

.btn-action-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-report .icon,
.btn-action-edit .icon {
    font-size: 16px;
    line-height: 1;
}

.btn-action-edit:hover {
    background: rgba(138, 33, 40, 0.3);
    border-color: #8a2128;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 33, 40, 0.4);
}

.btn-action-edit:active {
    transform: translateY(0);
}

/* ========== SOCIAL SHARE BUTTONS ========== */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-share i {
    line-height: 1;
}

.btn-share:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Platform-specific colors on hover */
.btn-share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.btn-share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.btn-share-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

/* ========== SERVER DROPDOWN ========== */
.server-dropdown-wrapper {
    position: relative;
}

.btn-server-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #8a2128;
    border: 1px solid #8a2128;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-server-dropdown:hover {
    background: #6e1a20;
    box-shadow: 0 4px 12px rgba(138, 33, 40, 0.4);
}

.btn-server-dropdown .server-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.server-dropdown-wrapper.open .server-arrow {
    transform: rotate(180deg);
}

.server-dropdown-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    left: 0;
    min-width: 160px;
    background: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: serverDropFade 0.15s ease;
    isolation: isolate;
}

@keyframes serverDropFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-dropdown-menu.show {
    display: block;
}

.server-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #d1d1d6;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.server-dropdown-item:hover {
    background: rgba(138, 33, 40, 0.2);
    color: #fff;
}

.server-dropdown-item.active {
    background: rgba(138, 33, 40, 0.3);
    color: #fff;
    font-weight: 600;
}

.server-dropdown-item i {
    font-size: 12px;
    color: #8a2128;
}

.server-dropdown-item.active i {
    color: #fff;
}

.server-check {
    margin-left: auto;
    color: #4caf50;
    font-weight: bold;
}

.server-dropdown-item+.server-dropdown-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .action-bar {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 16px;
    }

    .action-bar-left,
    .action-bar-right {
        width: auto;
        justify-content: flex-start;
    }

    .action-bar-right {
        gap: 10px;
    }

    /* Mobilde Report yazısını gizle, sadece bayrak ikonu kalsın */
    .btn-action-report .text {
        display: none;
    }

    .btn-action-report {
        padding: 10px 12px;
    }

    .btn-action-edit {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn-server-dropdown {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-server-dropdown .server-label {
        display: inline;
    }

    .btn-share {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .action-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .btn-action-report,
    .btn-action-edit {
        padding: 10px 12px;
    }

    .btn-share {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========== REPORT MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #27272a;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* Report Modal Close Button - high specificity to prevent overrides */
#reportModal .modal-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reportModal .modal-close:hover {
    color: #fff;
}

/* Modal Body */
.modal-body {
    padding: 24px;
}

.report-instructions {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(138, 33, 40, 0.1);
    border-left: 3px solid #8a2128;
    border-radius: 6px;
}

.report-instructions p {
    margin: 0;
    color: #d1d1d6;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #d1d1d6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #8a2128;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2128;
    background: rgba(39, 39, 42, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Turnstile Container */
.turnstile-container {
    margin-bottom: 20px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: #8a2128;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #6e1a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 33, 40, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #52525b;
    cursor: not-allowed;
    transform: none;
}

/* Alert (Feedback) */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        margin: 0;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}