/**
 * Public styles for Facebook Video Downloader
 */

/* Main container */
.fb-video-downloader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Typography */
.fb-video-downloader-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.fb-video-downloader-instructions {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* Form elements */
.fb-video-downloader-form {
    margin-bottom: 20px;
}

.fb-video-downloader-input-group {
    display: flex;
    margin-bottom: 10px;
}

.fb-video-downloader-url {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.fb-video-downloader-url:focus {
    outline: none;
    border-color: #38B6FF;
}

.fb-video-downloader-submit {
    background-color: #38B6FF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fb-video-downloader-submit:hover {
    background-color: #2c91cc;
}

.fb-video-downloader-example {
    font-size: 14px;
    color: #777;
    text-align: left;
}

.fb-video-example-link {
    color: #38B6FF;
    text-decoration: none;
}

.fb-video-example-link:hover {
    text-decoration: underline;
}

/* Status messages */
.fb-video-downloader-status {
    margin-bottom: 20px;
    min-height: 24px;
}

/* Results section */
.fb-video-downloader-results {
    margin-top: 30px;
}

.fb-video-downloader-video-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.fb-video-downloader-thumbnail {
    flex: 0 0 200px;
    margin-right: 20px;
    margin-bottom: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fb-video-downloader-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    z-index: 1;
}

.fb-video-downloader-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.fb-video-downloader-details {
    flex: 1;
    min-width: 250px;
}

.fb-video-downloader-video-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.fb-video-downloader-quality-options {
    margin-bottom: 15px;
}

.fb-video-downloader-quality-option {
    margin-bottom: 10px;
    background: white;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fb-video-downloader-quality-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.fb-video-downloader-quality-label {
    font-weight: 600;
    color: #333;
}

.fb-video-downloader-quality-size {
    color: #777;
}

.fb-video-downloader-download-button {
    display: inline-block;
    background-color: #38B6FF;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.fb-video-downloader-download-button:hover {
    background-color: #2c91cc;
}

.fb-video-downloader-actions {
    margin-top: 15px;
    text-align: center;
}

.fb-video-downloader-reset {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fb-video-downloader-reset:hover {
    background-color: #e9ecef;
}

/* Loading animation */
.fb-video-downloader-loading {
    text-align: center;
    padding: 30px 0;
}

.fb-video-downloader-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.fb-video-downloader-loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #38B6FF;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.fb-video-downloader-loader div:nth-child(1) {
    left: 8px;
    animation: fb-video-downloader-loader1 0.6s infinite;
}

.fb-video-downloader-loader div:nth-child(2) {
    left: 8px;
    animation: fb-video-downloader-loader2 0.6s infinite;
}

.fb-video-downloader-loader div:nth-child(3) {
    left: 32px;
    animation: fb-video-downloader-loader2 0.6s infinite;
}

.fb-video-downloader-loader div:nth-child(4) {
    left: 56px;
    animation: fb-video-downloader-loader3 0.6s infinite;
}

@keyframes fb-video-downloader-loader1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fb-video-downloader-loader3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes fb-video-downloader-loader2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

.fb-video-downloader-loading-text {
    margin-top: 15px;
    color: #666;
}

.fb-video-downloader-cancel {
    margin-top: 10px;
    background: none;
    border: none;
    color: #38B6FF;
    cursor: pointer;
    text-decoration: underline;
}

/* Error display */
.fb-video-downloader-error {
    text-align: center;
    padding: 30px 0;
}

.fb-video-downloader-error-icon {
    margin-bottom: 15px;
}

.fb-video-downloader-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    line-height: 1.5;
}

.fb-video-downloader-error-message ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.fb-video-downloader-error-message li {
    margin-bottom: 5px;
}

.fb-video-downloader-try-again {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fb-video-downloader-try-again:hover {
    background-color: #e9ecef;
}

/* Footer */
.fb-video-downloader-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .fb-video-downloader-container {
        padding: 15px;
    }
    
    .fb-video-downloader-input-group {
        flex-direction: column;
    }
    
    .fb-video-downloader-url {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .fb-video-downloader-submit {
        border-radius: 4px;
    }
    
    .fb-video-downloader-video-info {
        flex-direction: column;
    }
    
    .fb-video-downloader-thumbnail {
        margin-right: 0;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .fb-video-downloader-thumbnail img {
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
    }
    
    .fb-video-downloader-details {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .fb-video-downloader-video-title {
        font-size: 16px;
        clear: both;
        padding-top: 5px;
    }
    
    .fb-video-downloader-quality-option {
        padding: 15px 10px;
    }
    
    .fb-video-downloader-download-button {
        display: block;
        text-align: center;
        margin-top: 8px;
    }
}

/* Tips container */
.fb-video-downloader-tips {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
} 