/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #F4F5F7;
    color: #172B4D;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid #DFE1E6;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    color: #0052CC;
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    background: #F4F5F7;
    color: #42526E;
    border: 1px solid #DFE1E6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #EBECF0;
    border-color: #C1C7D0;
}

.logout-btn {
    background: #F4F5F7;
    color: #42526E;
    border: 1px solid #DFE1E6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #EBECF0;
    border-color: #C1C7D0;
}

/* Main Content Styles */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    min-height: 100vh;
}

.page-header {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #172B4D;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #6B778C;
    font-size: 16px;
}

/* Stats Bar Styles */
.stats-bar {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F4F5F7;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #172B4D;
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: #0052CC;
}

/* Media Grid Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.media-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-preview {
    width: 100%;
    height: 200px;
    background: #F4F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-image {
    transform: scale(1.05);
}

.media-placeholder {
    font-size: 48px;
    color: #6B778C;
}

.media-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.media-info {
    padding: 20px;
}

.media-title {
    font-size: 18px;
    font-weight: 600;
    color: #172B4D;
    margin-bottom: 8px;
    line-height: 1.3;
}

.media-description {
    color: #6B778C;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.media-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #DEEBFF;
    color: #0052CC;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.media-date {
    font-size: 12px;
    color: #6B778C;
}

.media-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn.primary {
    background: #0052CC;
    color: white;
}

.action-btn.primary:hover {
    background: #0043A3;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #F4F5F7;
    color: #42526E;
    border: 1px solid #DFE1E6;
}

.action-btn.secondary:hover {
    background: #EBECF0;
    border-color: #C1C7D0;
}

/* Loading Styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F4F5F7;
    border-top: 4px solid #0052CC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0052CC, #0065FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #172B4D;
    font-weight: 600;
}

.empty-state p {
    color: #6B778C;
    font-size: 16px;
    line-height: 1.5;
}

/* Error Message Styles */
.error-message {
    background: #FFEBE6;
    color: #DE350B;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid #FFBDAD;
}

/* Media Modal Styles */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.media-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.media-modal img,
.media-modal video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.media-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
}

.media-modal-close:hover {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .main-content {
        padding: 16px;
    }

    .page-header {
        padding: 24px 16px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .media-actions {
        flex-direction: column;
    }
}