:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --text-color: #fff;
    --accent-color: #2196F3;
    --error-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    position: relative;
}

nav {
    margin-top: 1rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.5rem;
}

button:hover {
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.career-card {
    background-color: var(--secondary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.career-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

#careerHome {
    max-width: 800px;
    margin: 0 auto;
}

.career-header {
    background-color: var(--secondary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.back-button {
    margin-bottom: 1rem;
}

.career-info {
    margin-top: 0.5rem;
}

.media-upload-section {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tag-input-wrapper input,
#mediaCaption {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 0.95rem;
}

#mediaCaption {
    min-height: 80px;
    resize: vertical;
}

.media-filter {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}

.tag:hover {
    opacity: 0.9;
}

.media-grid-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
    cursor: pointer;
}

.media-container {
    width: 100%;
    position: relative;
    padding-top: 100%;
}

.media-container img,
.media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #1a1a1a;
}

.media-info {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.media-caption {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.media-tags {
    margin-top: 1rem;
}

.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

.media-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s;
}

.media-delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.7);
}

/* Make sure the delete button doesn't interfere with the modal view */
.modal-content .media-delete-btn {
    display: none;
}

@media (max-width: 1200px) {
    main {
        padding: 0 1rem;
    }
    
    .media-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 0.5rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-modal {
        padding: 1rem;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-buttons button {
        margin: 0;
        width: 100%;
    }
}

/* Add these styles for the file input */
.upload-form input[type="file"] {
    display: none;
}

.file-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-input-label {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.2s;
}

.file-input-label:hover {
    opacity: 0.9;
}

.file-name {
    color: #888;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Loading spinner styles */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add disabled state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Add styles for upload progress */
.upload-progress {
    height: 3px;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
    margin-top: 0.5rem;
}

/* Add these styles */
.save-load-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#exportBtn {
    background-color: #1976D2;
}

#importBtn {
    background-color: #03A9F4;
}

.import-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: center;
    }
}

.career-tabs {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tab-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tab-button:hover {
    opacity: 0.9;
}

.ocr-progress-container {
    width: 100%;
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ocr-progress {
    height: 4px;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
}

.ocr-status {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 0.5rem;
}

.tag-input-wrapper {
    position: relative;
    width: 100%;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#tagFilter {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* Add these new styles */
.career-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 120px); /* Account for header */
    margin: -2rem auto 0;
    max-width: 1400px;
    padding: 2rem;
}

.career-sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.career-content {
    overflow-y: auto;
    padding-right: 1rem;
}

.career-header {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .career-layout {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .career-layout {
        grid-template-columns: 1fr;
        height: auto;
        padding: 1rem;
    }

    .career-sidebar {
        position: static;
        margin-bottom: 1rem;
    }

    .career-content {
        padding-right: 0;
    }
}

/* Adjust main padding */
main {
    padding: 0;
}

#careerHome {
    max-width: none;
}

/* Content Tabs */
.content-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid transparent;
}

.tab-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Clips Section */
.clip-upload-section {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.clip-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clip-form input {
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.clip-item {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.clip-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.clip-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.play-button:hover {
    background: var(--accent-color);
}

.delete-clip-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.clip-info {
    padding: 1rem;
}

.clip-info h3 {
    margin: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.clip-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.clip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Modal adjustments for YouTube */
.modal-content iframe {
    max-width: 90vw;
    max-height: 90vh;
    width: 960px;
    height: 540px;
    border-radius: 8px;
} 