/* Album Form Container */
.album-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.album-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.album-form-header h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* Form Messages */
.album-form-messages {
    margin-bottom: 20px;
}

.album-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 20px;
}

.album-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

/* Form Fields */
.album-form-field {
    margin-bottom: 25px;
}

.album-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.album-form-field .required {
    color: #e74c3c;
}

.album-form-field input[type="text"],
.album-form-field textarea,
.album-form-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.album-form-field input[type="text"]:focus,
.album-form-field textarea:focus,
.album-form-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.album-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.album-form-field input[type="file"] {
    display: block;
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.album-form-field input[type="file"]:hover {
    border-color: #3498db;
}

/* Image Preview */
.album-image-preview {
    position: relative;
    margin-top: 15px;
    display: inline-block;
}

.album-image-preview img {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.album-image-preview .remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease;
}

.album-image-preview .remove-image:hover {
    background: #c0392b;
}

.current-album-image {
    margin-bottom: 15px;
}

.current-album-image img {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-album-image .help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Form Actions */
.album-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.album-submit-btn,
.album-delete-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.album-submit-btn {
    background: #3498db;
    color: white;
    flex: 1;
}

.album-submit-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.album-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.album-delete-btn {
    background: #e74c3c;
    color: white;
}

.album-delete-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.album-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* User Albums List */
.user-albums-list {
    padding: 20px 0;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.album-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.album-thumbnail {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    background: #f5f5f5;
}

.album-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-thumbnail img {
    transform: scale(1.05);
}

.album-card-content {
    padding: 20px;
}

.album-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.album-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.album-title a:hover {
    color: #3498db;
}

.album-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.album-category {
    background: #3498db;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.album-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.album-actions {
    display: flex;
    gap: 10px;
}

.album-actions a {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-view {
    background: #3498db;
    color: white;
    flex: 1;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-edit {
    background: #95a5a6;
    color: white;
    flex: 1;
}

.btn-edit:hover {
    background: #7f8c8d;
}

/* No Albums */
.no-albums {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-albums p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Pagination */
.albums-pagination {
    text-align: center;
    margin-top: 40px;
}

.albums-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.albums-pagination .page-numbers:hover,
.albums-pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .album-form {
        padding: 20px;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .album-form-actions {
        flex-direction: column;
    }
    
    .album-submit-btn,
    .album-delete-btn {
        width: 100%;
    }
}

/* Media Gallery Management */
.album-media-upload-area {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.album-add-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-add-media-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.album-add-media-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.album-add-media-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.album-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-media-item {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.album-media-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-thumbnail {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.media-thumbnail img,
.media-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.delete-media-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.album-media-item:hover .delete-media-btn {
    opacity: 1;
}

.delete-media-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: scale(1.1);
}

.delete-media-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-media-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.media-title-wrapper {
    padding: 12px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.media-title-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.media-title-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.save-media-title-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.save-media-title-btn:hover:not(:disabled) {
    background: #229954;
    transform: scale(1.05);
}

.save-media-title-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.save-media-title-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.save-media-title-btn .dashicons-update {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gallery Display (Frontend) */
.album-gallery-display {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.album-gallery-display[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.album-gallery-display[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.album-gallery-display[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.gallery-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-image-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-image-link:hover img {
    transform: scale(1.05);
}

.gallery-video video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px 10px 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.video-item .gallery-caption,
.audio-item .gallery-caption {
    position: static;
    background: #333;
    opacity: 1;
    padding: 10px;
    text-align: center;
    margin-top: 8px;
    border-radius: 4px;
}

.album-no-media {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Upload Progress */
.album-upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.progress-text small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.progress-count {
    color: #3498db;
    font-weight: 700;
}

.progress-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #3498db;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-errors {
    margin-top: 12px;
}

.upload-error {
    padding: 8px 12px;
    background: #fee;
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #721c24;
}

.upload-error:last-child {
    margin-bottom: 0;
}

/* Widget Elementor Gallery */
.album-gallery-widget {
    display: grid;
    gap: 20px;
}

.album-gallery-widget[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.album-gallery-widget[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.album-gallery-widget[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.album-gallery-widget[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-item-widget {
    position: relative;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: visible;
}

.gallery-item-widget > a,
.gallery-item-widget > .video-thumbnail,
.gallery-item-widget > .audio-player {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.gallery-item-widget img,
.gallery-item-widget video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-widget .gallery-image-link,
.gallery-item-widget .gallery-video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item-widget .gallery-image-link img {
    transition: transform 0.3s ease;
}

.gallery-item-widget .gallery-image-link:hover img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.gallery-video-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item-widget .media-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.gallery-item-widget .media-title {
    padding: 12px;
    background: white;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-widget .audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
}

.gallery-item-widget .audio-player audio {
    width: 100%;
    max-width: 300px;
}

/* GLightbox Custom Styles */
.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.8);
}

.glightbox-clean .gslide-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .album-media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .album-gallery-display[data-columns="3"],
    .album-gallery-display[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-gallery-display[data-columns="2"] {
        grid-template-columns: 1fr;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .progress-percentage {
        font-size: 16px;
    }
    
    .album-gallery-widget[data-columns="3"],
    .album-gallery-widget[data-columns="4"],
    .album-gallery-widget[data-columns="5"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* My Account Page */
.my-account-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.my-account-navigation {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.my-account-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-account-navigation li {
    margin: 0;
}

.my-account-navigation a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.my-account-navigation li.is-active a {
    background: #f0f8ff;
    border-left-color: #3498db;
    color: #3498db;
    font-weight: 600;
}

.my-account-navigation a:hover {
    background: #f9f9f9;
}

.my-account-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Dashboard */
.my-account-dashboard h2 {
    margin: 0 0 30px;
    font-size: 28px;
    color: #333;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 48px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.dashboard-recent-albums h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #333;
}

.recent-albums-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-album-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recent-album-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.recent-album-item h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.album-meta {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.btn-edit-album {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-edit-album:hover {
    background: #2980b9;
}

/* Albums Grid */
.albums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.albums-header h2 {
    margin: 0;
    font-size: 28px;
}

.btn-create-album {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create-album:hover {
    background: #229954;
    transform: translateY(-2px);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.album-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.album-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.album-no-thumbnail .dashicons {
    font-size: 64px;
    color: #999;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-overlay .btn-view,
.album-overlay .btn-edit {
    width: 50px;
    height: 50px;
    background: white;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.album-overlay .btn-view:hover,
.album-overlay .btn-edit:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.album-card .album-info {
    padding: 20px;
}

.album-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.album-card .album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin: 0;
}

.media-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-albums-message {
    text-align: center;
    padding: 60px 20px;
}

.no-albums-message .dashicons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-albums-message h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.no-albums-message p {
    margin: 0 0 30px;
    color: #666;
}

.btn-create-album-large {
    display: inline-block;
    padding: 15px 40px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-create-album-large:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* Profile Form */
.my-account-profile h2 {
    margin: 0 0 30px;
    font-size: 28px;
}

.profile-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.profile-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-form {
    max-width: 600px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.section-description {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.btn-save-profile {
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-profile:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.current-avatar {
    flex-shrink: 0;
}

.current-avatar img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-upload {
    flex: 1;
}

.btn-upload-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-upload-avatar:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-upload-avatar .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.avatar-upload small {
    display: block;
    color: #666;
    margin-bottom: 10px;
}

#avatar-preview-name {
    margin-top: 10px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 4px;
    color: #2c3e50;
}

#avatar-preview-name:empty {
    display: none;
}

/* Friends Section */
.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.friends-header h2 {
    margin: 0;
    font-size: 28px;
}

.friends-count {
    background: #3498db;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin: 0;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.friend-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.friend-avatar {
    margin-bottom: 15px;
}

.friend-avatar img {
    border-radius: 50%;
    border: 4px solid #f0f0f0;
}

.friend-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #333;
}

.friend-meta {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.friend-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-view-friend {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-friend:hover {
    background: #2980b9;
}

.btn-remove-friend {
    padding: 10px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-remove-friend:hover {
    background: #c0392b;
}

.no-friends-message {
    text-align: center;
    padding: 60px 20px;
}

.no-friends-message .dashicons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-friends-message h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.no-friends-message p {
    margin: 0;
    color: #666;
}

/* Add Friend Widget */
.add-friend-widget {
    text-align: center;
}

.btn-add-friend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-friend:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-add-friend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-friend-widget .btn-remove-friend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #95a5a6;
    font-size: 16px;
    font-weight: 600;
}

.add-friend-widget .btn-remove-friend:hover {
    background: #7f8c8d;
}

.friend-message {
    margin-top: 15px;
}

.friend-success {
    padding: 12px 20px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.friend-error {
    padding: 12px 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .my-account-wrapper {
        flex-direction: column;
    }
    
    .my-account-navigation {
        flex: 1;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .friend-actions {
        flex-direction: column;
    }
    
    .profile-picture-section {
        flex-direction: column;
        text-align: center;
    }
    
    .current-avatar img {
        width: 120px;
        height: 120px;
    }
}
