/* 
   YouTube Description Extractor - Design System
   Color Palette: Blue to Reddish Gradient
*/



/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Decoration */
/* body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    z-index: -1;
}  */

/* Layout Container */
.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px !important;
}

/* Header Section */
.app-header {
    text-align: center;
    margin-bottom: 50px;
}

.app-header h1 {
    font-size: 3rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.app-header p {
    color: #64748b !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar Section */
.search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-input-group {
    display: flex;
    background: white;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15) !important;
}

.search-input-group input {
    flex: 1;
    background: transparent !important;
/*     border: none !important; */
    outline: none !important;
    color: #1e293b;
    padding: 15px 20px !important;
    font-size: 1rem;
}

.search-input-group input::placeholder {
    color: #94a3b8 !important;
}

.extract-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%) !important;
    color: white;
    border: none !important;
    padding: 0 30px !important;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.extract-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.extract-btn:active {
    transform: translateY(0);
}

/* Loading State */
.loading-container {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-left-color: #ef4444 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.results-container {
    display: none;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video Info Card */
.video-card {
    background: white;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.thumbnail-wrapper {
    position: relative;
    width: 200px;
    height: 120px;
    background: #000;
    flex-shrink: 0;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.video-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-header-compact {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    color: #1e293b;
}

.video-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.stat-item i {
    color: #ef4444 !important;
    font-size: 1rem;
}

/* Description Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 1.1rem;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.description-box {
    background: #f8fafc !important;
    border-radius: 16px !important;
    padding: 20px !important;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

/* Scrollbar */
.description-box::-webkit-scrollbar {
    width: 6px;
}

.description-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Action Buttons */
.copy-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 15px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.copy-btn.success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header h1 { font-size: 2rem; }
    .search-input-group { flex-direction: column; padding: 10px; }
    .extract-btn { width: 100%; padding: 15px !important; margin-top: 10px; }
    .video-stats { flex-wrap: wrap; gap: 15px; }
    .video-title { font-size: 1.2rem; flex-direction: column; }
    .tags-container { grid-template-columns: 1fr; }
    .video-header-compact { flex-direction: column; }
    .thumbnail-wrapper { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.app-container{
		padding:40px 0px !important
	}
}

/* Tags Container */
.tags-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* Tag Checkbox */
.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 15px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-checkbox:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.tag-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ef4444;
}

.tag-checkbox input[type="checkbox"]:checked + .tag-label {
    color: #ef4444;
    font-weight: 600;
}

.tag-label {
    color: #475569;
    font-size: 0.95rem;
    word-break: break-word;
    transition: color 0.2s;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}