/* css/userBanner_styles.css */

/* General Banner Styles */
.userGameProfileBanner {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    border: 10px solid #000000; /* Default border color, overridden by PHP */
    border-radius: 15px;
    display: flex;
    background-color: #f5f5f5; /* Light mode background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    -webkit-text-stroke-width: 0.4px;
    -webkit-text-stroke-color: white;
}

/* Dark Mode */
body.dark-mode .userGameProfileBanner {
    background-color: #1a1a1a; /* Dark mode background */
    border-color: #00cc00; /* Accent border */
}

/* Columns */
.profileBannerUser, .profileBannerShowcase, .profileBannerStatistics {
    /*padding: 20px;*/
    box-sizing: border-box;
}

.profileBannerUser {
    width: 25%;
    text-align: center;
    border-right: 1px solid #ccc; /* Separator line */
}

body.dark-mode .profileBannerUser {
    border-right: 1px solid #00cc00; /* Dark mode separator */
}

.profileBannerShowcase {
    width: 45%;
    border-right: 1px solid #ccc; /* Separator line */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.dark-mode .profileBannerShowcase {
    border-right: 1px solid #00cc00; /* Dark mode separator */
}

.profileBannerStatistics {
    width: 30%;
}

/* Profile Banner User */
.user-username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
}

body.dark-mode .user-username {
    color: #fff; /* White text */
}

.user-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-level-title {
    font-size: 1.4vmin;
    color: #666;
}

body.dark-mode .user-level-title {
    color: #fff; /* White text */
}

/* Profile Banner Showcase */
.about-me-section h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

body.dark-mode .about-me-section h3 {
    color: #fff; /* White text */
}

.about-me-section p {
    font-size: 1.4vmin;
    color: #666;
}

body.dark-mode .about-me-section p {
    color: #fff; /* White text */
}

.badges-section {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.badge {
    width: 50px;
    height: 50px;
}

/* Profile Banner Statistics */
.profileBannerStatistics div {
    font-size: 1vmin;
    margin-bottom: 10px;
    color: #333;
}

body.dark-mode .profileBannerStatistics div {
    color: #fff; /* White text */
}

/* Banner Buttons */
.banner-buttons {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 10px auto;
}

.banner-buttons button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

body.dark-mode .banner-buttons button {
    background-color: #00cc00; /* Accent color for buttons */
    color: #1a1a1a; /* Dark text for contrast */
}

.banner-buttons button:hover {
    background-color: #0056b3;
}

body.dark-mode .banner-buttons button:hover {
    background-color: #00b300; /* Slightly darker accent */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker overlay */
}

.modal-content {
    background-color: #fff;
    /* margin: 15% auto; */
    padding: 20px;
    border: 1px solid #888;
    width: 800px;
    height: 500px;
   /* max-width: 500px; */
    border-radius: 10px;
}

body.dark-mode .modal-content {
    background-color: #1a1a1a; /* Dark background */
    color: #fff; /* White text */
    border-color: #00cc00; /* Accent border */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

body.dark-mode .close {
    color: #fff; /* White text */
}

.close:hover {
    color: #000;
}

body.dark-mode .close:hover {
    color: #00cc00; /* Accent color on hover */
}

#editBannerForm label {
    display: block;
    margin: 10px 0 5px;
    color: #333;
}

body.dark-mode #editBannerForm label {
    color: #fff; /* White text */
}

#editBannerForm input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

body.dark-mode #editBannerForm input {
    background-color: #333; /* Darker input background */
    color: #fff; /* White text */
    border-color: #00cc00; /* Accent border */
}

#editBannerForm button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

body.dark-mode #editBannerForm button {
    background-color: #00cc00; /* Accent color */
    color: #1a1a1a; /* Dark text for contrast */
}

#editBannerForm button:hover {
    background-color: #218838;
}

body.dark-mode #editBannerForm button:hover {
    background-color: #00b300; /* Slightly darker accent */
}

/* Context Menu Styles */
.context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

body.dark-mode .context-menu {
    background-color: #1a1a1a; /* Dark background */
    border-color: #00cc00; /* Accent border */
}

.context-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
}

body.dark-mode .context-menu button {
    color: #fff; /* White text */
}

.context-menu button:hover {
    background-color: #f0f0f0;
}

body.dark-mode .context-menu button:hover {
    background-color: #333; /* Darker hover background */
}

/* Media Query for Smaller Screens (max-width: 720px) */
@media screen and (max-width: 720px) {
    /* General Banner Styles */
    .userGameProfileBanner {
        width: 100%; /* Full width on mobile */
        height: auto; /* Allow height to adjust */
        flex-direction: row; /* Stack columns vertically */
        align-items: center;
        border-width: 5px; /* Thinner border for mobile */
        border-radius: 10px;
    }

    body.dark-mode .userGameProfileBanner {
        background-color: #1a1a1a;
        border-color: #00cc00;
    }

    /* Columns */
    .profileBannerUser, .profileBannerShowcase, .profileBannerStatistics {
        width: 100%; /* Full width for each section */
        padding: 15px; /* Reduced padding */
        border-right: none; /* Remove separator lines */
        border-bottom: 1px solid #ccc; /* Add bottom separator */
    }

    body.dark-mode .profileBannerUser,
    body.dark-mode .profileBannerShowcase {
        border-right: none;
        border-bottom: 1px solid #00cc00; /* Dark mode separator */
    }

    .profileBannerStatistics {
        border-bottom: none; /* No bottom border for the last section */
    }

    /* Profile Banner User */
    .user-username {
        font-size: 10px; /* Smaller font size */
    }

    body.dark-mode .user-username {
        color: #fff;
    }

    .user-picture {
        width: 35px; /* Smaller profile picture */
        height: 35px;
    }

    .user-level-title {
        font-size: 7px; /* Smaller font size */
    }

    body.dark-mode .user-level-title {
        color: #fff;
    }

    /* Profile Banner Showcase */
    .about-me-section h3 {
        font-size: 10px; /* Smaller font size */
    }

    body.dark-mode .about-me-section h3 {
        color: #fff;
    }

    .about-me-section p {
        font-size: 7px; /* Smaller font size */
    }

    body.dark-mode .about-me-section p {
        color: #fff;
    }

    .badges-section {
        margin-top: 8px;
    }

    .badge {
        width: 20px; /* Smaller badges */
        height: 20px;
    }

    /* Profile Banner Statistics */
    .profileBannerStatistics div {
        font-size: 7px; /* Smaller font size */
    }

    body.dark-mode .profileBannerStatistics div {
        color: #fff;
    }

    /* Banner Buttons */
    .banner-buttons {
        width: 100%; /* Full width */
        flex-direction: row; /* Stack buttons vertically */
        margin: 10px 0;
    }

    .banner-buttons button {
        width: 100%; /* Full width buttons */
        margin: 5px 0; /* Add spacing between buttons */
        padding: 5px; /* Larger padding for touch targets */
        font-size: 3vmin;}

    body.dark-mode .banner-buttons button {
        background-color: #00cc00;
        color: #1a1a1a;
    }

    .banner-buttons button:hover {
        background-color: #0056b3;
    }

    body.dark-mode .banner-buttons button:hover {
        background-color: #00b300;
    }

    /* Modal Styles */
    .modal-content {
        margin: 10% auto; /* Adjust margin for smaller screens */
        width: 90%; /* Wider modal */
        max-width: 400px; /* Smaller max width */
        padding: 15px; /* Reduced padding */
    }

    body.dark-mode .modal-content {
        background-color: #1a1a1a;
        color: #fff;
        border-color: #00cc00;
    }

    .close {
        font-size: 24px; /* Smaller close button */
    }

    body.dark-mode .close {
        color: #fff;
    }

    body.dark-mode .close:hover {
        color: #00cc00;
    }

    #editBannerForm label {
        font-size: 14px; /* Smaller font size */
    }

    body.dark-mode #editBannerForm label {
        color: #fff;
    }

    #editBannerForm input {
        padding: 6px; /* Reduced padding */
    }

    body.dark-mode #editBannerForm input {
        background-color: #333;
        color: #fff;
        border-color: #00cc00;
    }

    #editBannerForm button {
        padding: 8px 16px; /* Smaller button */
    }

    body.dark-mode #editBannerForm button {
        background-color: #00cc00;
        color: #1a1a1a;
    }

    body.dark-mode #editBannerForm button:hover {
        background-color: #00b300;
    }

    /* Context Menu Styles */
    .context-menu {
        width: 150px; /* Fixed width for mobile */
    }

    body.dark-mode .context-menu {
        background-color: #1a1a1a;
        border-color: #00cc00;
    }

    .context-menu button {
        padding: 8px; /* Reduced padding */
        font-size: 14px; /* Smaller font size */
    }

    body.dark-mode .context-menu button {
        color: #fff;
    }

    body.dark-mode .context-menu button:hover {
        background-color: #333;
    }
}