/* 
   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: #0f172a;
    color: #f8fafc;
    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.15) 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.2) 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;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.app-header p {
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    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: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.search-input-group input {
    flex: 1;
    background: transparent !important;
    border:none !important;
    outline: none !important;
    color: white !important;
    padding: 15px 20px !important;
    font-size: 1rem;
}

.search-input-group input::placeholder {
    color: gray !important;
}

.extract-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0 30px !important;
    border-radius: 12px !important;
    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) !important;
}

.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 !important;
    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-color: rgb(15 23 42 / 92%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000 !important;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
       background-color: rgb(15 23 42 / 65%) !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-content {
    padding: 30px;
	    background-color: rgb(15 23 42 / 65%);
}

.video-title {
	color:white !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.video-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8 !important;
    font-size: 0.95rem;
}

.stat-item i {
    color: #ef4444 !important;
}
#videoDescription{
	color:white !important;
}

/* Description Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 1.1rem;
    color: white!important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#videoDuration{
	color:white !important;
}

.description-box {
    background: rgba(15, 23, 42, 0.5) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem !important;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 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: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !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;
    border-color: #3b82f6 !important;
}

.copy-btn.success {
    background: #10b981 !important;
    border-color: #10b981;
}
.search-input-group placeholder{
	color:gray !important;
}

/* 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; }
	.section-header{
		display:block;
	}
	.section-header h3{
		padding:10px !important
	}
	.app-container{
		padding:0px !important;
	}
	.search-input-group {
	border:1px solid gray !important
}
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}