/* Pinterest Video Downloader - Clean White Style */
.pvd-downloader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Card Design */
.pvd-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid #eaeaea;
}

/* Header */
.pvd-header {
    text-align: center;
    margin-bottom: 25px;
}

.pvd-title {
    color: #e60023;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.pvd-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Input Section */
.pvd-input-section {
    margin-bottom: 20px;
}

.pvd-input-group {
    position: relative;
    margin-bottom: 15px;
}

.pvd-url-input {
    width: 100%;
    padding: 16px 45px 16px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #333;
}

.pvd-url-input:focus {
    outline: none;
    border-color: #e60023;
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.pvd-url-input::placeholder {
    color: #999;
}

.pvd-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.pvd-clear-btn:hover {
    color: #e60023;
}

.pvd-download-btn {
    width: 100%;
    padding: 16px;
    background: #e60023;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.pvd-download-btn:hover {
    background: #d4001f;
    transform: translateY(-1px);
}

.pvd-download-btn:active {
    transform: translateY(0);
}

.pvd-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.pvd-spinner {
    display: none;
}

.pvd-spinner-svg {
    width: 20px;
    height: 20px;
    animation: pvd-spin 1s linear infinite;
}

.pvd-spinner-circle {
    stroke: white;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
}

@keyframes pvd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.pvd-error-message {
    background: #ffe6e9;
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #e60023;
    font-weight: 500;
    display: none;
}

/* Preview Section */
.pvd-preview-section {
    margin-top: 20px;
    display: none;
}

.pvd-preview-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.pvd-preview-header {
    background: #e60023;
    padding: 12px 16px;
}

.pvd-preview-title {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pvd-preview-content {
    padding: 20px;
}

.pvd-thumbnail-container {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    max-height: 300px;
    background: #f0f0f0;
}

.pvd-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* No thumbnail */
.pvd-no-thumbnail {
    text-align: center;
    padding: 30px 20px;
    background: #f0f0f0;
    border-radius: 6px;
}

.pvd-no-thumbnail p {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.pvd-video-info {
    text-align: center;
}

.pvd-video-title {
    color: #333;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
}

.pvd-preview-footer {
    padding: 16px;
    background: white;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.pvd-final-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #e60023;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.pvd-final-download-btn:hover {
    background: #d4001f;
    transform: translateY(-1px);
}

.pvd-download-icon {
    font-weight: bold;
}

/* Instructions */
.pvd-instructions {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #eaeaea;
}

.pvd-instructions-title {
    color: #333;
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.pvd-instructions-list {
    margin: 0;
    padding-left: 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.pvd-instructions-list li {
    margin-bottom: 8px;
}

.pvd-instructions-list li:last-child {
    margin-bottom: 0;
}

/* Tips section */
.pvd-tips {
    margin-top: 15px;
    padding: 12px;
    background: rgba(230, 0, 35, 0.05);
    border-radius: 6px;
    border-left: 3px solid #e60023;
}

.pvd-tips p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pvd-card {
        padding: 20px;
    }
    
    .pvd-title {
        font-size: 24px;
    }
    
    .pvd-url-input {
        padding: 14px 40px 14px 14px;
        font-size: 14px;
    }
    
    .pvd-download-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .pvd-preview-content {
        padding: 15px;
    }
    
    .pvd-instructions {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .pvd-downloader-container {
        padding: 15px;
    }
    
    .pvd-card {
        padding: 16px;
    }
    
    .pvd-title {
        font-size: 22px;
    }
    
    .pvd-subtitle {
        font-size: 14px;
    }
    
    .pvd-final-download-btn {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }
}