/* Pinterest Downloader Plugin Styles */
.pinterest-downloader-container {
    max-width: 800px;
    margin: 30px auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

/* Loading Overlay */
.pinterest-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    will-change: display;
}

.pinterest-loader-overlay.active {
    display: flex;
}

.pinterest-no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

.pinterest-content-hidden > :not(.pinterest-loader-overlay) {
    display: none;
}

.pinterest-loader-content {
    text-align: center;
    padding: 40px;
}

.pinterest-loader {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E60023;
    border-radius: 50%;
    animation: pinterest-spin 1s linear infinite;
    margin: 0 auto 30px;
    will-change: transform;
}

.pinterest-loader-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.pinterest-loader-text {
    font-size: 16px;
    color: #6b7280;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pinterest-loader-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #d97706;
    font-weight: 600;
    font-size: 14px;
}

.warning-icon {
    font-size: 18px;
}

.warning-text {
    animation: pinterest-pulse 2s infinite;
}

/* Form Container */
.pinterest-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.pinterest-header {
    text-align: center;
    margin-bottom: 40px;
}

.pinterest-title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
}

.pinterest-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.pinterest-form {
    max-width: 600px;
    margin: 0 auto;
}

.pinterest-input-group {
    margin-bottom: 30px;
}

.pinterest-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.pinterest-input-wrapper {
    position: relative;
}

.pinterest-input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    color: #1f2937;
    outline: none;
    box-sizing: border-box;
}

.pinterest-input:focus {
    border-color: #E60023;
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
    background: #ffffff;
}

.pinterest-input::placeholder {
    color: #9ca3af;
}

.pinterest-input-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinterest-input-btn:hover {
    color: #E60023;
    background: rgba(230, 0, 35, 0.1);
}

.pinterest-input-btn svg {
    width: 20px;
    height: 20px;
}

.pinterest-clear-btn {
    right: 55px;
}

.pinterest-submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #E60023, #C5001E);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.25);
}

.pinterest-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(230, 0, 35, 0.35);
}

.pinterest-submit-btn:active {
    transform: translateY(0);
}

.pinterest-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.pinterest-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: pinterest-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.pinterest-submit-btn.loading .pinterest-button-spinner {
    display: inline-block;
}

.pinterest-submit-btn.loading .pinterest-button-text {
    opacity: 0.8;
}

/* Features Section */
.pinterest-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pinterest-feature {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.pinterest-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pinterest-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pinterest-feature-icon svg {
    width: 28px;
    height: 28px;
}

.pinterest-feature-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.pinterest-feature-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.pinterest-feature-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.pinterest-feature h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.pinterest-feature p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Results Container */
.pinterest-results-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    animation: pinterest-fadeIn 0.5s ease;
}

.pinterest-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.pinterest-results-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.pinterest-results-header p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}

.pinterest-back-btn {
    background: none;
    border: none;
    color: #E60023;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.pinterest-back-btn:hover {
    background: rgba(230, 0, 35, 0.1);
    color: #C5001E;
}

.pinterest-back-btn svg {
    width: 18px;
    height: 18px;
}

.pinterest-results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Media Preview */
.pinterest-media-preview h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.pinterest-preview-container {
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
}

.pinterest-preview-container img,
.pinterest-preview-container video {
    width: 100%;
    height: auto;
    display: block;
}

.pinterest-media-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Download Options */
.pinterest-download-options h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.pinterest-download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.pinterest-download-primary {
    background: linear-gradient(135deg, #E60023, #C5001E);
    color: white;
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.25);
}

.pinterest-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 0, 35, 0.35);
    color: white;
    text-decoration: none;
}

.pinterest-download-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.pinterest-download-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    color: #1f2937;
    text-decoration: none;
}

.pinterest-download-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pinterest-download-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pinterest-download-icon.primary {
    background: rgba(255, 255, 255, 0.2);
}

.pinterest-download-icon.secondary {
    background: #e5e7eb;
}

.pinterest-download-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
}

.pinterest-download-details h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pinterest-download-details p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Video Cover Download Buttons */
.pinterest-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.pinterest-divider::before,
.pinterest-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.pinterest-divider span {
    flex: none;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.pinterest-download-cover {
    background: #374151;
    color: white;
    box-shadow: 0 4px 15px rgba(55, 65, 81, 0.25);
}

.pinterest-download-cover:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.35);
    color: white;
    text-decoration: none;
}

.pinterest-download-cover-force {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.pinterest-download-cover-force:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    color: #1f2937;
    text-decoration: none;
}

.pinterest-download-icon.cover {
    background: rgba(255, 255, 255, 0.2);
}

.pinterest-download-icon.cover-force {
    background: #e5e7eb;
}

/* Schema Animation - Subtle SEO Enhancement */
.pinterest-schema-animate {
    opacity: 0;
    animation: schemaFadeIn 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes schemaFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEO Enhancement Badge - Hidden but indexed */
.pinterest-seo-badge {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    font-size: 0;
}

/* Share Buttons Styling */
.pinterest-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.pinterest-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.pinterest-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.pinterest-share-facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.pinterest-share-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1464d6);
}

.pinterest-share-twitter {
    background: linear-gradient(135deg, #1da1f2, #1a91da);
}

.pinterest-share-twitter:hover {
    background: linear-gradient(135deg, #1a91da, #1681c2);
}

.pinterest-share-whatsapp {
    background: linear-gradient(135deg, #25d366, #20bd5a);
}

.pinterest-share-whatsapp:hover {
    background: linear-gradient(135deg, #20bd5a, #1ca64f);
}

.pinterest-share-copy {
    background: linear-gradient(135deg, #6b7280, #5b6370);
}

.pinterest-share-copy:hover {
    background: linear-gradient(135deg, #5b6370, #4b5563);
}

.pinterest-share-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pinterest-share-icon svg {
    width: 100%;
    height: 100%;
}

/* Mobile responsive share buttons */
@media (max-width: 768px) {
    .pinterest-share-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pinterest-share-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

.pinterest-download-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.pinterest-download-btn:hover .pinterest-download-arrow svg {
    transform: translateX(4px);
}

/* Error Container */
.pinterest-error-container {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    animation: pinterest-fadeIn 0.5s ease;
}

.pinterest-error-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.pinterest-error-message {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

/* Animations */
@keyframes pinterest-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pinterest-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pinterest-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pinterest-downloader-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .pinterest-form-container {
        padding: 30px 20px;
    }
    
    .pinterest-title {
        font-size: 26px;
    }
    
    .pinterest-description {
        font-size: 16px;
    }
    
    .pinterest-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .pinterest-results-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pinterest-results-container {
        padding: 30px 20px;
    }
    
    .pinterest-input {
        padding: 16px 50px 16px 16px;
        font-size: 15px;
    }
    
    .pinterest-submit-btn {
        padding: 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pinterest-loader-title {
        font-size: 24px;
    }
    
    .pinterest-loader-text {
        font-size: 14px;
    }
    
    .pinterest-title {
        font-size: 22px;
    }
    
    .pinterest-input {
        padding: 14px 45px 14px 14px;
    }
    
    .pinterest-submit-btn {
        padding: 16px;
        font-size: 15px;
    }
    
    .pinterest-loader {
        width: 50px;
        height: 50px;
    }
    
    .pinterest-loader-content {
        padding: 30px;
    }
    
    .pinterest-form-container {
        padding: 20px 15px;
    }
    
    .pinterest-results-container {
        padding: 20px 15px;
    }
    
    .pinterest-feature {
        padding: 20px 15px;
    }
    
    .pinterest-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .pinterest-feature-icon svg {
        width: 24px;
        height: 24px;
    }
}