/* ============================================
   UPLOAD.CSS - Upload Page Specific Styles
   ============================================ */

/* Auth Section */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
}

.toggle-auth {
    text-align: center;
    margin-top: 20px;
    color: #212020;
}

.toggle-auth a {
    color: #003362;
    text-decoration: none;
    font-weight: 600;
}

/* Secondary auth actions (Google sign-in + Create Account) below the login button */
.auth-secondary {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-account-link {
    text-align: center;
    color: #003362;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.create-account-link:hover {
    text-decoration: underline;
}

/* Google sign-in: official button PNG wrapped in a plain, centered button */
.btn-google {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.btn-google img {
    display: block;
    height: 44px;      /* 720x160 asset renders crisp at 198x44 */
    width: auto;
}

.btn-google:hover {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}


/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.upload-limit-info {
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Search & Filter Row */
.content-filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.content-filter-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.content-filter-row input[type="text"]:focus {
    outline: none;
    border-color: #003362;
}

.content-filter-row select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.content-filter-row select:focus {
    outline: none;
    border-color: #003362;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.content-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.content-image:hover {
    opacity: 0.9;
}

.content-info {
    margin-bottom: 15px;
}

.content-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.content-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.content-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #003362;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-processing {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-failed {
    background: #f8d7da;
    color: #721c24;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-draft {
    background: #e8eaf6;
    color: #3949ab;
}

.badge-youtube {
    background: #ffebee;
    color: #c62828;
}

/* Media type tab toggle */
.media-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.media-tab {
    flex: 1;
    padding: 10px 16px;
    background: white;
    color: #666;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.media-tab.active {
    background: #003362;
    color: white;
}

.media-tab:hover:not(.active) {
    background: #f0f0f0;
}

.youtube-thumb-preview {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.youtube-thumb-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-setup {
    background: #003362;
    color: white;
}

.btn-setup:hover {
    background: #00254a;
}

.content-date {
    margin-left: 10px;
    color: #888;
    font-size: 13px;
}

.content-type {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
}

.tracking-rating {
    font-size: 13px;
    color: #003362;
    letter-spacing: 1px;
}

.content-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .content-filter-row {
        flex-direction: column;
    }

    .content-filter-row input[type="text"],
    .content-filter-row select {
        width: 100%;
    }

    .content-actions {
        flex-wrap: wrap;
    }

    .content-actions .btn-small {
        flex: 1 1 calc(50% - 5px);
        text-align: center;
    }
}

/* AR tracking-quality badges (score from the scoreTargetQuality function) */
.badge-quality-good { background: #d4edda; color: #155724; }
.badge-quality-fair { background: #fff3cd; color: #856404; }
.badge-quality-poor { background: #f8d7da; color: #721c24; }
