/* LinkedIn Video Downloader - Frontend Styles */

.lvd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #000000;
    color: #000000;
}

/* Header Styles */
.lvd-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lvd-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000 !important;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* Form Styles */
.lvd-form {
    margin-bottom: 2rem;
}

.lvd-input-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lvd-input-container {
    position: relative;
    flex: 1;
}

.lvd-paste-inside {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
    min-width: 60px;
    z-index: 10;
}

.lvd-input-container .lvd-url-input {
    padding-right: 80px !important;
}

.lvd-url-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.lvd-url-input:focus {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.lvd-url-input::placeholder {
    color: #000000;
    font-weight: 400;
}

.lvd-paste-btn {
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.lvd-paste-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.lvd-paste-btn:active {
    transform: translateY(0);
}

.lvd-paste-btn.clear {
    background: #000000;
}

.lvd-paste-btn.clear:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #333333;
}



/* Download Button */
.lvd-download-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.lvd-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.lvd-download-btn:active {
    transform: translateY(0);
}

.lvd-download-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.lvd-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lvd-spinner-svg {
    width: 100%;
    height: 100%;
    animation: lvd-spin 1s linear infinite;
}

.lvd-spinner-circle {
    stroke: currentColor;
    stroke-linecap: round;
    animation: lvd-dash 1.5s ease-in-out infinite;
}

@keyframes lvd-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes lvd-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Result Section */
.lvd-result {
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #000000;
}

.lvd-video-preview {
    margin-bottom: 1.5rem;
}

#lvd-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lvd-download-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lvd-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lvd-download-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
    background: #333333;
}

.lvd-download-link:active {
    transform: translateY(0);
}

.lvd-download-link svg {
    width: 16px;
    height: 16px;
}

/* Download Progress */
.lvd-download-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    animation: lvd-pulse 2s infinite;
}

.lvd-download-progress svg {
    width: 16px;
    height: 16px;
}

@keyframes lvd-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Try Another Video Button */
.lvd-try-another {
    margin-top: 1.5rem;
    text-align: center;
}

.lvd-try-another-btn {
    padding: 1rem 2rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lvd-try-another-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Error Styles */
.lvd-error {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
}

/* Success Message */
.lvd-success {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #059669;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lvd-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .lvd-title {
        font-size: 1.5rem;
    }
    
    .lvd-input-group {
        flex-direction: column;
        gap: 0;
    }
    
    .lvd-input-container {
        margin-bottom: 1rem;
    }
    
    .lvd-paste-inside {
        right: 6px;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .lvd-input-container .lvd-url-input {
        padding-right: 65px !important;
        font-size: 16px;
    }
    
    .lvd-download-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .lvd-result {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .lvd-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .lvd-title {
        font-size: 1.3rem;
    }
    
    .lvd-url-input,
    .lvd-quality-select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .lvd-download-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Loading States */
.lvd-loading {
    opacity: 0.7;
    pointer-events: none;
}

.lvd-loading .lvd-download-btn {
    background: #9ca3af;
}

/* Animation for result appearance */
.lvd-result {
    animation: lvd-fadeIn 0.5s ease-out;
}

@keyframes lvd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.lvd-url-input:focus,
.lvd-quality-select:focus,
.lvd-paste-btn:focus,
.lvd-download-btn:focus {
    outline: 2px solid #0077b5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lvd-container {
        border: 2px solid #000000;
    }
    
    .lvd-url-input,
    .lvd-quality-select {
        border: 2px solid #000000;
    }
    
    .lvd-download-btn {
        background: #000000;
        color: #ffffff;
    }
}

 