/*
 * Stylesheet for header.php - Dark Mode Version
 */

/* === General Styles for Header Structure === */

/* Add this to the top of your existing 111-css.css file */

body {
    background-color: #2c3e50; /* A dark, deep blue-gray that works well in dark mode */
    color: #ecf0f1; /* Light gray text for readability */
    margin: 0; /* Remove default browser margin */
    padding: 0; /* Remove default browser padding */
    font-family: Arial, sans-serif; /* A good default font */
}

/* You might also want to style standard links for dark mode */
a {
    color: #86c232; /* Use your accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9ecc5e;
    text-decoration: underline;
}

header {
    /* Main Dark Background */
    background-color: #1e272e; 
    padding: 10px 0;
    /* Darker, more subtle shadow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); 
    color: #fff; /* Default text color in header */
}

.header-style-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* === Branding/Logo Styles === */

header h1 a {
    color: #86c232; /* Vibrant accent color */
    font-size: 1.6rem;
    text-decoration: none;
}

/* === Navigation Links Styles === */

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav ul li a {
    color: #ddd; /* Light text for links */
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}

header nav ul li a:hover {
    background-color: rgba(134, 194, 50, 0.2); /* Hover using the accent color */
    color: #fff;
}

/* === Right-side Icons & Forms Container === */

.header-style-header-icons {
    display: flex;
    align-items: center;
}

/* Styles for Chat/Notification Icons */
.header-style-header-icons a {
    display: inline-block;
    margin-left: 10px;
    color: #ddd;
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-style-header-icons a:hover {
    background-color: rgba(134, 194, 50, 0.2);
    color: #fff;
}

/* === Website Redirection Form Styles === */

.header-style-website-form {
    margin-left: 10px;
}

.header-style-website-form input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #444; /* Darker border */
    background-color: #2c3e50; /* Slightly lighter than header background */
    color: #fff;
}

.header-style-website-form button {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background-color: #86c232; /* Accent color */
    color: #1e272e; /* Dark text on button */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-style-website-form button:hover {
    background-color: #9ecc5e; /* Slightly lighter accent on hover */
}

/* === Profile Dropdown Styles === */

.header-style-profile-dropdown {
    position: relative;
}

.header-style-profile-dropdown > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff; 
    padding: 6px 0;
}

.header-style-pfp {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #86c232; /* Accent border */
    object-fit: cover;
}

.header-style-pfp[style*="background-color: #555"] {
    background-color: #34495e !important; /* Darker color for initial PFP */
}

/* Dropdown Content */
.header-style-profile-dropdown .header-style-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2c3e50; /* Darker dropdown background */
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    padding: 10px 0;
    min-width: 170px; /* Slightly wider */
    text-align: left;
    display: none;
    z-index: 10; 
}

.header-style-profile-dropdown:hover .header-style-dropdown-content {
    display: block; 
}

.header-style-profile-dropdown .header-style-dropdown-header {
    padding: 10px 15px;
    color: #fff;
    white-space: nowrap;
    border-bottom: 1px solid #34495e; /* Separate header */
    margin-bottom: 5px;
}

.header-style-profile-dropdown .header-style-dropdown-header p {
    margin-top: 2px;
    font-size: 0.9rem;
    color: #86c232; /* Accent color for role/detail */
}

.header-style-profile-dropdown .header-style-dropdown-content a {
    color: #ddd;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-style-profile-dropdown .header-style-dropdown-content a:hover {
    background-color: #3e5066; /* Hover slightly darker */
    color: #fff;
}

.header-style-profile-dropdown .header-style-dropdown-divider {
    border-top: 1px solid #34495e;
    margin: 5px 0;
}

/* === Login/Register Buttons === */
/* These buttons are generated by the PHP 'else' block */
.header-style-header-icons button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Login Button */
.header-style-header-icons button:nth-child(1) { /* Assuming 'Login' is the first button */
    background-color: transparent;
    border: 1px solid #86c232;
    color: #86c232;
}

.header-style-header-icons button:nth-child(1):hover {
    background-color: #86c232;
    color: #1e272e;
}

/* Register Button */
.header-style-header-icons button:nth-child(2) { /* Assuming 'Register' is the second button */
    background-color: #86c232;
    color: #1e272e;
}

.header-style-header-icons button:nth-child(2):hover {
    background-color: #9ecc5e;
}


/* === Search Button Styles === */

.header-style-search-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: 10px;
}

.header-style-search-button i {
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.header-style-search-button:hover i {
    color: #86c232; /* Accent hover */
}



/* ... existing styles above ... */

/* --- NEW STYLES FOR COMMENT BOX --- */

/* Style the comment form container */
.comment-form {
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #333; /* Darker border */
    border-radius: 8px; /* Rounded corners */
    background-color: #1a1a1a; /* Very dark background */
}

/* Style the textarea for the comment */
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    box-sizing: border-box; /* Include padding in the width */
    border: 1px solid #555; /* Light border */
    border-radius: 6px;
    background-color: #222; /* Dark input background */
    color: #e0e0e0; /* Light text color */
    font-size: 14px;
    resize: vertical; /* Allow vertical resize only */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Style the textarea when it's focused (clicked) */
.comment-form textarea:focus {
    border-color: #BB86FC; /* Primary color border on focus */
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.5); /* Subtle glowing effect */
    outline: none; /* Remove default browser focus outline */
}

/* Style the Reply button */
.comment-form button[type="submit"] {
    padding: 10px 15px;
    background-color: #BB86FC; /* Primary action color */
    color: #121212; /* Dark text on button for contrast */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.comment-form button[type="submit"]:hover {
    background-color: #a46de9; /* Slightly darker purple on hover */
}

/* ... existing styles below ... */