/*
 * styles.css
 * Plugin: GiantSponge Gallery Tools
 * File: styles.css version 2.21
 * Description: Global stylesheet for the GiantSponge Gallery Tools plugin.
 * 
 */

/* Base container styles */
table.wp-list-table {
    width: 100%;
}

.card2 {
    background-color: white;
}

.user-info-display,
.user-info-not-logged-in {
    border: 1px solid #ddd;
    padding: 20px 20px 0px 20px;
    border-radius: 5px;
    margin: 20px auto;
}

.user-info-display h3 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Tab Styles */
.user-profile-tabs {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
}

.user-profile-tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0px;
    padding-left: 1px;
}

.user-profile-tab-button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    border-radius: 1px;
    margin-right: 2px;
    white-space: nowrap;
    color: #333;
}

.user-profile-tab-button:hover {
    background-color: #6a6a6a;
}

.user-profile-tab-button.active {
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    position: relative;
    top: 1px;
    font-weight: bold;
    color: #333;
}

.user-profile-tab-content {
    padding: 15px 0;
    border-top: 1px solid #eee;
}

/* Message styles */
.user-info-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;

}

.user-info-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.user-info-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Static view styles */
.user-static-info {
    margin-bottom: 25px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.user-static-info p {
    margin-bottom: 8px;
}

.user-static-info p strong {
    display: inline-block;
    min-width: 120px;
}

.user-bio-section-view {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.user-bio-section-view h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.user-info-edit-button-wrap {
    text-align: center;
}

/* Editable form styles */
.user-edit-form {
    margin-top: 20px;
}

.user-info-field {
    margin-bottom: 15px;
}

.user-info-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95em;
}

#description_edit {
    display: none;
}

.user-info-field input[type="text"],
.user-info-field input[type="email"],
.user-info-field input[type="url"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.user-info-field textarea {
    resize: vertical;
}

.description-hint,
.email-info-hint {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

.user-info-submit {
    text-align: center;
    margin-top: 30px;
}

.user-info-submit input[type="submit"] {
    padding: 5px;
    margin-right: 10px;
}

/* Common informational links */
.user-info-password-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    font-size: 0.9em;
    color: #666;
}

.user-info-password-info a {
    font-weight: bold;
}

.user-info-logout-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* User Info Header for Specific Galleries */
.gsgallery-user-info-header {
    margin: 20px auto;
    padding: 15px;
}

.gsgallery-user-info-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.gsgallery-user-info-header p {
    color: #666;
    line-height: 1.5;
}

/* Styles for [user-gallery-info] shortcode */
.user-gallery-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    border-radius: 8px;
    margin: 0px;
}

.user-gallery-image {
    flex: 0 0 200px;
    width: 200px;
    height: 300px;
    overflow: hidden;
    max-width: 100%;

}

.user-gallery-image-wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.user-gallery-profile-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    min-height: 300px;
}

.user-gallery-image-placeholder {
    text-align: center;
    color: #888;
}

.user-gallery-content {
    flex: 1;
    min-width: 250px;
}

.user-gallery-content h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: capitalize;
}

.user-gallery-content p {
    margin-bottom: 15px;
}

.user-gallery-content a {
    font-weight: bold;
}

/* New: Wrapper for stacked stats boxes */
.user-side-stats {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 220px;
}

/* New: User Meta Stats Box */
.user-meta-stats {
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.user-meta-stats h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.user-meta-stats p {
    margin-bottom: 5px;
    font-size: 0.9em;
    word-wrap: break-word;
}

.user-meta-stats p strong {
    margin-right: 5px;
}

.user-gallery-info-error {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #fdd;
    border: 1px solid #fcc;
    border-radius: 5px;
}

/* Container for gallery actions buttons */
.gallery-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Wrapper for individual gallery thumbnails */
.user-gallery-thumbnails-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Individual gallery thumbnail container */
.user-gallery-thumbnail {
    position: relative;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    flex: 0 0 calc(100px + 10px);
    max-width: 110px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Styling for the image itself */
.user-gallery-thumbnail img {
    display: block;
    max-width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Styling for gallery thumbnail checkboxes */
.gallery-thumbnail-checkbox {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.gallery-empty-message {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

/* Basic styling for the full-width button and message */
.gsgallery-copy-url-wrapper{
    margin-top: -22px;
}
.gsgallery-copy-button {
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsgallery-copy-button .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.gsgallery-copy-message {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: green;
    font-weight: bold;
}

.user-info-not-logged-in{
    font-size: 24px;
    width: 800px;
    padding: 80px;
}
/* --- Responsive adjustments for user-gallery-info --- */
@media (max-width: 768px) {
    .user-gallery-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .user-gallery-image-wrapper {
        width: 100%;
        max-width: 300px;
        height: auto;
        order: 1;
    }

    .user-gallery-profile-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .user-gallery-content {
        width: 100%;
        min-width: unset;
        text-align: left;
        order: 2;
    }

    .user-side-stats {
        width: 100%;
        flex: none;
        order: 3;
        align-items: center;
    }

    .user-meta-stats {
        width: 100%;
        max-width: 300px;
        text-align: left;
    }
}
/* EXTRA User Gallery Info Layout adjustments */
.user-gallery-content {
    flex: 1;
    min-width: 300px;
}

.user-side-stats {
    flex: 0 0 250px;
    max-width: 100%;
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
    .user-gallery-image,
    .user-gallery-content,
    .user-side-stats {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
    }
    .user-gallery-image-wrapper {
        width: 100%;
        height: 100%;
        margin: 0 auto 15px;
    }
    .user-gallery-profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }
}

/* Like and Follow  */

/* --- User Profile Header Layout --- */
.user-profile-header {
    /* ... (unchanged) ... */
}

.profile-title-and-actions {
    display: flex; /* Enables flexbox for horizontal alignment */
    align-items: center; /* Vertically aligns items in the center */
    justify-content: space-between; /* Pushes the title to the left and actions to the right */
    margin-bottom: 20px; /* Space between title/actions and the share button */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.profile-title-and-actions h1 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
    line-height: 1;
}

.header-actions {
    display: flex;
    gap: 15px; /* Space between Like and Follow links */
    margin-left: 20px;
    white-space: nowrap;
    font-size: 1.1em;
}

/* --- Common Link Styles --- */
.like-link,
.follow-link {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #ccc;
    display: inline-flex; /* Use flexbox for internal alignment */
    align-items: center; /* Vertically align content */
}

/* Specific styles for the Like link */
.like-link {
    color: #e02a50;
    border-color: #e02a50;
    background-color: transparent;
}

.like-link:hover {
    background-color: #e02a50;
    color: white;
    cursor: pointer;
}

/* Specific styles for the Follow link - Base style for the '+' */
.follow-link {
    color: #e02a50;
    border-color: #e02a50;
    background-color: transparent;
    padding: 3px 8px; /* Slightly adjusted padding for the + */
        display: none;

}

.follow-link:hover {
    background-color: #e02a50;
    color: white;
    cursor: pointer;
}

/* Style for the 'plus' icon within the follow link */
.follow-icon {
    font-size: 1.8em; /* Make the plus much larger and heavier */
    font-weight: 900; /* Extra bold */
    line-height: 1; /* Ensure it doesn't add extra space */
    vertical-align: middle;
}

/* Hide text visually for screen readers */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Style for the "Following" state (filled red with white text) */
.follow-link.following {
    background-color: #e02a50;
    color: white;
    border-color: #e02a50;
    cursor: default;
}

.follow-link.following:hover {
    background-color: #e02a50;
    color: white;
}

/* No need for .disabled-follow-link if all are clickable / roles control */


/* Adjustments for the Copy Share Link Button */
.gsgallery-copy-url-wrapper {
    margin-bottom: 20px;
}

.button.gsgallery-copy-button {
    background-color: #e02a50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
}

.button.gsgallery-copy-button:hover {
    background-color: #c92546;
}

.dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .profile-title-and-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        margin-left: 0;
        margin-top: 10px;
    }

    .profile-title-and-actions h1 {
        font-size: 2em;
    }
}

