/* Albums Page Styles */

/* Albums Controls */
.albums-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #FF9AA2;
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.2);
}

.filter-box select {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-box select:focus {
    outline: none;
    border-color: #FF9AA2;
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.2);
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.album-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.album-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f0f0;
}

.album-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 154, 162, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.album-info {
    padding: 20px;
}

.album-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.album-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.album-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #999;
}

.album-meta i {
    margin-right: 5px;
}

/* Album Detail Page */
.album-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.album-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.album-header-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.album-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.album-header-info h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.album-header-info .album-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.album-stats {
    display: flex;
    gap: 20px;
    font-size: 1em;
    color: #999;
}

.album-stats i {
    margin-right: 5px;
    color: #FF9AA2;
}

.album-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    background: #f0f0f0;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.post-counts {
    display: flex;
    gap: 20px;
    color: white;
    font-size: 1.2em;
}

.post-counts i {
    margin-right: 5px;
}

.post-info {
    padding: 20px;
}

.post-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.post-meta i {
    margin-right: 5px;
    color: #FF9AA2;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    background: rgba(255, 154, 162, 0.1);
    color: #FF9AA2;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Post Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content-post {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
}

.post-modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.post-modal-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
}

.post-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: #666;
}

.post-modal-meta i {
    margin-right: 5px;
    color: #FF9AA2;
}

.post-modal-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.post-image-item {
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.post-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.post-video-item {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.post-video-item iframe,
.post-video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.album-form,
.post-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-group label i {
    margin-right: 8px;
    color: #FF9AA2;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9AA2;
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #999;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input-group .url-input {
    flex: 1;
}

.btn-small {
    padding: 12px 20px;
    font-size: 0.9em;
    white-space: nowrap;
}

.items-list {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.item-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.item-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.item-preview {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    font-size: 3em;
    color: #999;
}

.item-info {
    padding: 10px;
}

.item-url {
    font-size: 0.85em;
    color: #666;
    word-break: break-all;
    margin-bottom: 8px;
}

.btn-remove {
    width: 100%;
    padding: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #c82333;
}

.empty-list {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .albums-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .album-header-content {
        grid-template-columns: 1fr;
    }
    
    .album-header-info h1 {
        font-size: 1.8em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content-post {
        margin: 40px 20px;
        padding: 20px;
    }
    
    .post-images,
    .post-videos {
        grid-template-columns: 1fr;
    }
    
    .albums-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
}
