/* ── Card action row (edit / delete on hover) ───────────── */
.card-action-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
}

.card-action-row .card {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.28s ease;
}

/* Hover trigger — pointer/mouse devices only */
@media (hover: hover) {
    .card-action-row:hover .card {
        transform: translateX(-76px);
    }
}

/* Buttons card sits behind the article card and expands to the right */
.card-action-col {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 68px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: white;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--cardShadow);
    /* Start fully clipped from the left — expands rightward on hover/swipe */
    clip-path: inset(0 0% 0 100% round 0 20px 20px 0);
    transition: clip-path 0.28s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .card-action-row:hover .card-action-col {
        clip-path: inset(0 0% 0 0% round 0 20px 20px 0);
        pointer-events: auto;
    }
}

/* Touch swipe-left state (toggled by JS) */
.card-action-row--swiped .card {
    transform: translateX(-76px);
}

.card-action-row--swiped .card-action-col {
    clip-path: inset(0 0% 0 0% round 0 20px 20px 0);
    pointer-events: auto;
}

.card-edit-btn,
.card-delete-btn {
    background: transparent;
    border: none;
    color: black;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: background 0.15s;
    font-family: var(--mainFont);
}
.card-edit-btn:hover   { background: #f0f0f0; }
.card-delete-btn:hover { background: #fff0f0; }

.btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.btn-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: black;
    line-height: 1;
    font-family: var(--mainFont);
}

/* ── Delete confirmation modal ───────────────────────────── */
.delete-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirm-box {
    background: white;
    border-radius: 16px;
    padding: 28px 24px 20px 24px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--mainFont);
}

.delete-confirm-title {
    margin: 0;
    font-size: 1.1rem;
}

.delete-confirm-body {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.delete-confirm-yes {
    background: #c00;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-family: var(--mainFont);
    cursor: pointer;
    transition: background 0.15s;
}
.delete-confirm-yes:hover { background: #a00; }

.delete-confirm-no {
    background: transparent;
    color: #555;
    border: 1.5px solid #d3d3d3;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-family: var(--mainFont);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.delete-confirm-no:hover { border-color: black; color: black; }

@media (max-width: 480px) {
    .delete-confirm-overlay {
        padding: 0 20px;
    }
    .delete-confirm-box {
        width: 100%;
        max-width: 100%;
    }
}

/* Prevent card slide-left when there are no edit/delete action buttons */
.card-action-row:not(:has(.card-action-col)):hover .card {
    transform: none;
}

/* ── Suggested profiles column ───────────────────────────── */
#suggestedProfilesColumn {
    width: 200px;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 16px;
    gap: 12px;
    padding: 20px;
}

.suggested-profiles-title {
    font-family: var(--mainFont);
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.suggested-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgb(20, 20, 20);
    border-radius: 12px;
    padding: 8px 10px;
    transition: background 0.15s;
    font-family: var(--mainFont);
}

.suggested-profile-card:hover {
    background: #f5f5f5;
}

.suggested-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e8e8e8;
    background: #f0f0f0;
}

.suggested-profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Author links ────────────────────────────────────────── */
.author-link {
    text-decoration: none;
    color: inherit;
}
.author-link:hover strong {
    color: #555;
}

hr.settingsSeparator {
    margin: 0px;
    border-style: solid;
    border-color: #d3d3d373;
    border-width: 0.5px;
    margin-left: 16px;
        margin-right: 6px;
    border-radius: 2px;
/*     height: 4px; */
  }

#userDataColumn {
    flex: 1;
    min-width: 0;
    max-width: 700px;
    margin-top: 20px;
    padding: 0px 16px;
}

#createButton {
    overflow: clip;
    border-radius: 20px;
    display: flex;
    flex-direction: horizontal;
    vertical-align: middle;
/*     box-shadow: var(--cardShadow); */
    width: 100px;
    margin: auto;
    margin-top: 8px;
        margin-bottom: 8px;
/*     border-style: solid; */
    border-color: #f1f1f1;
    padding: 4px;
/*     background-color: white; */
/*     filter: invert(100%); */
/*     border-style: dashed ; */
/*     border-color: black; */
}

#image-create{
    width: 140px;
    height: 120px;
    object-fit: cover;
    object-position: -10px 0px;
        vertical-align: middle;

}

#image-plus{
    height: 14px;
        margin: auto;
    margin-left: 24px;
    margin-right: 8px;
        vertical-align: middle;
}

#createText {
    font-family: var(--mainFont);
    vertical-align: middle;
    margin: auto;
    margin-left: 0px;
        margin-right: 0px;
    font-size: 1.2rem;
    font-weight: 600;
}

#userDialog {
    font-family: var(--mainFont);
    border-style: none;
    border-radius: 20px;
 /* box-shadow: var(--cardShadow); */
    padding: 0px;
    overflow: hidden;
    height: 230px;
}
@media (max-width: 800px) {
    #userDialog {
        height: 200px;
        border-radius: 16px;
    }
}

#userTopSection {
    width: 100%;
        height: 50%;
    display: flex;
    flex-direction: column;
}

#userBottomSection {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
}

#backgroundImage {
        width: 100%;
        object-fit: cover;
    flex: 1;
    min-height: 0;
}

#profileImage {
    width: 90px;
    height: 90px;
    position: absolute;
    transform: translate(-50%, -50%);
    margin-left: 90px;
    align-content: center;
    align-self: center;
    border-radius: 50px;
    border-color: white;
    border-width: 4px;
    border-style: solid;
    background: white;
    object-fit: cover;
}
@media (max-width: 800px) {
    #profileImage {
        margin-left: 15%;
        width: 70px;
        height: 70px;
        object-fit: cover;
    }
}

#userUsername {
    font-size: 1.2rem;
    font-weight: bold;
    margin: auto;
}
@media (max-width: 800px) {
    #userUsername {
        padding: 8px 16px;
        font-size: 1.2rem;
    }
}

#userInfo {
    display: flex;
    gap: 60px;
    align-items: center;
    align-content: center;
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
}
@media (max-width: 800px) {
    #userInfo {
        padding: 16px 16px;
        gap: 30px;
    }
}

.userInfoCounter {
    font-size: 1rem;
}

.userInfoCounterNumber {
    font-weight: 600;
}

#userArticles {
    margin: 8px 0px;
}

#userNews {
    margin: 8px 0px;
}

#userSettings {
    margin: 8px 0px;
}

#userEditColumnInTab {
    width: 100%;
    display: none;
}

#settingsButtonsColumnInTab {
    display: flex;
    flex-direction: column;
}

#settingsButton {
    display: none;
}
@media (max-width: 800px) {
    #settingsButton {
        display: block;
    }
}

.userSettingsButton {
    display: flex;
    font-family: var(--mainFont);
    height: 40px;

/*     font-weight: 600; */
    background-color: white;
    border-style: none;
        border-radius: 8px;
    text-decoration: none;
    color: rgb(20, 20, 20);
    box-shadow: var(--cardShadow);

    margin-top: 12px;
    padding: 4px;

}

.userSettingsButton img {
    height: 18px;
    vertical-align:middle;
        padding: 8px;
    margin-left: 8px;
    margin-top: auto;
    margin-bottom: auto;
/*         margin: auto; */
}

.userSettingsButton span {
    height: 20px;
    vertical-align:middle;
    padding: 8px;
    margin: auto;
    margin-left: 0px;
/*     margin: auto; */
}


.tab {
  overflow: hidden;
  background-color: #f1f1f1;
    border-radius: 16px;
    display: flex;
    margin-top: 16px;
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 8px;
  transition: 0.3s;
     flex: 1;
  text-align: center;
    margin: 4px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    color: black;
}
@media (max-width: 800px) {
    .tab button {
        padding: 4px;
    }
}

.tab button:hover {
  background-color: #f7f7f7;
}

.tab button.active {
  background-color: #fff;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}


#userGrid {
  max-width: 1000px;
  margin: auto;
      margin-top: 0px;
  display: flex;
  flex-direction: row;
}

#settingsColumn {
    flex-shrink: 0;
/*     width: 300px; */
}
@media (max-width: 800px) {
    #settingsColumn {
        display: none;
    }
}

#settingsButtonsColumn{
    width: 200px;
     display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 16px;
    gap: 20px;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
}

#userEditColumn {
    width: 200px;
    display: none;
    flex-direction: column;
    margin: auto;
    gap: 20px;
    border-radius: 16px;
    padding: 20px;
}

.settingsButton {
    font-family: var(--mainFont);
   width: 100%;
    height: 40px;
    font-size: 01rem;
/*     font-weight: 600; */
    background-color: white;
    border-style: none;
        border-radius: 8px;
/*     box-shadow: -2px 0px 2px #bdbdbd73;; */
    text-align: left;
    padding-left: 8px;
    text-decoration: none;
    color: rgb(20, 20, 20);
    vertical-align:middle;

}

.settingsButton img {
    height: 20px;
    vertical-align:middle;
        padding: 8px;
}

.settingsButton span {
    height: 20px;
    vertical-align:middle;
    padding: 8px;
}

/* Links on mouse-over */
.settingsButton:hover:not(.active) {
/*     background-color: rgb(212, 212, 212);
    border-radius: 8px;
    filter: invert(100%); */
    background-color: rgb(255, 255, 255);
    font-weight: 600;
}

.settingsButton:hover:not(.active) img {
/*     height: 22px;
    width: 22px; */
}

/* ── Empty tab placeholder ── */
.empty-tab-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 48px 24px;
    gap: 10px;
    text-align: center;
    font-family: var(--mainFont);
}

.empty-tab-icon {
    width: 56px;
    height: 56px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.empty-tab-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    font-family: var(--mainFont);
}

.empty-tab-subtitle {
    font-size: 0.875rem;
    color: #555;
    font-family: var(--mainFont);
}
