/* ==================== Global Styles ==================== */
p {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

h1, h2 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

a {
    background-color: azure;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
}

a:hover {
    background-color: aquamarine;
}

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    border-width: 1px;
    border-style: solid;  
}

td {
    font-weight: 400;
}

ul {
    list-style-type: square;
    font-family: Arial, Helvetica, sans-serif;
}

html, body {
    background-color: lightgreen;
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100%;
}

footer {
    margin-top: auto;
    text-align: center;
    background-color: azure;
    padding: 10px;
}

/* ==================== Buttons ==================== */
button {
    padding: 4px 10px;
    margin-top: 5px;
    background-color: lightblue;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: deepskyblue;
}

/* ==================== Confession Wall ==================== */
.confession-item {
    background: #ffffff;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.confession-moods {
    margin-top: 6px;
}

.mood-toggle {
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
    font-size: 16px;
}

.mood-btn {
    background: #f0f0f0;
    border: none;
    padding: 5px 8px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    display: none;
}

.mood-btn.active-mood {
    background: #c1f0c1;
}

.mood-btn:hover::after {
    content: attr(data-users);
    position: absolute;
    top: -20px;
    left: 0;
    background: #eee;
    padding: 2px 4px;
    border: 1px solid #ccc;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 10;
}

.delete-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* ==================== Reply Section ==================== */
.reply-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.reply-input {
    width: 70%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}

.reply-btn {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    background: lightslategray;
    color: white;
    cursor: pointer;
}

.reply-btn:hover {
    background-color: #556b2f;
}

.small-reply-btn {
    font-size: 0.8em;
    margin-left: 5px;
    cursor: pointer;
    color: #007bff;
}

.small-reply-btn:hover {
    text-decoration: underline;
}

/* ==================== Reply List ==================== */
.reply-list {
    list-style: none;
    margin-top: 8px;
    padding-left: 0;
}

.reply-item {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
}

/* ==================== Nested Replies ==================== */
.reply-list .confession-item {
    margin-left: 20px;
    background: #f9f9f9;
    padding: 8px 10px;
    border-radius: 5px;
    box-shadow: none;
}

/* ==================== Load More Replies Button ==================== */
.view-more, .load-more-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    font-size: 13px;
    display: inline-block;
}

.view-more:hover, .load-more-btn:hover {
    background-color: #218838;
}

/* ==================== Header & Logo ==================== */
header {
    background-color: darkgreen;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

header img {
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    width: 80px;
    height: 80px;
}

header h1 {
    margin-left: 20px;
    font-size: 2em;
    color: #333;
}

/* ==================== Story Images ==================== */
.story-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.story-images img {
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* ==================== Dropdown Menu ==================== */
.menu-dropdown {
    position: relative;
}

.dropdown-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #007BFF;
    min-width: 180px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 2000;
}

.dropdown-links.active {
    display: flex;
    max-height: 1000px;
    opacity: 1;
}


.confession-form textarea {
    display: block;
    margin: 0 auto; /* centers horizontally */
    width: 70%;
    max-width: 500px;
}

.confession-form button {
    display: block;
    margin: 10px auto 0 auto; /* centers the button below the textarea */
}



@media (max-width: 480px) {
  header { flex-direction: column; padding: 10px; }
  header h1 { font-size: 1.5em; margin-top: 10px; text-align: center; }
  .reply-input, #confessionInput { width: 100%; }
  .reply-section { flex-direction: column; }
  .confession-item, .reply-item { font-size: 14px; }
  .reply-list .confession-item { margin-left: 10px; }
  .dropdown-links { flex-direction: column; align-items: flex-start; }
  .mood-btn { font-size: 12px; padding: 4px 6px; }
  footer { font-size: 12px; }
}

.app-header {
  text-align: center;
  background-color: #ffb703; /* same color as your theme */
  padding: 20px;
  color: white;
}

.app-header h1 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: bold;
}

.app-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
