/**
 * Layer 31-40: Complete CSS Styling
 * All visual styles for authentication, comments, media, search, trending, and video
 */

/* Layer 31: Authentication Forms */
.auth-forms {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.auth-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.auth-form-container.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Layer 32: Comments */
.comments-section {
    margin: 2rem 0;
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    min-height: 100px;
    resize: vertical;
}

.comment {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #718096;
    font-size: 0.875rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #667eea;
    font-size: 0.875rem;
}

/* Layer 33: Media Upload & Gallery */
.media-upload {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
    text-align: center;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.media-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-info {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

/* Layer 34: Search */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.search-results {
    margin-top: 1rem;
}

.result-item {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.result-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
}

/* Layer 39: Trending Widget */
.trending-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trending-widget h3 {
    margin-top: 0;
    color: #2d3748;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.trending-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Layer 40: Video Feed */
.video-feed {
    padding: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-card h4 {
    padding: 1rem;
    margin: 0;
}

.video-card button {
    width: 100%;
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.video-player {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-player button {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.video-player video {
    max-width: 100%;
    max-height: 80vh;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-forms {
        margin: 1rem;
        padding: 1rem;
    }

    .media-gallery,
    .video-grid {
        grid-template-columns: 1fr;
    }
}