/* Pintod Plugin Styles */
.spinner {
    margin: 10px auto;
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#pintod-form {
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 30px auto;
    text-align: center;
    max-width: 900px;
    width: 100%;
}
h2.subheading{
    color: #ffffff !important;
    font-size: 18px !important;
}
.form-input-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

/* URL input field */
#pintod-form input[type="url"] {
    width: 100%;
    padding: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    color: #333;
    margin-right: 5px; /* Space between URL input and Paste button */
}

/* Paste Button inside the input field */
.paste-btn {
    position: absolute;
    right: 162px;
    top: 5;
    padding: 13px 25px;
    background-color: #ffaeb2;
    color: #ca2d35;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    border: none;
    font-weight: 500;
}
.paste-btn i{
    padding-right: 5px !important;
}


/* Hover effect for Download Button */
#download-btn:hover {
    background-color: #45a049;
}

/* Main Container */
#pintod_result {
    margin: 20px auto;
    max-width: 100%;
}

.pintod-media-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px;
}

/* Media Preview Section */
.pintod-gif-preview, 
.pintod-image-preview, 
.pintod-video-preview {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.pintod-gif-preview img, 
.pintod-image-preview img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    object-fit: contain;
}

.pintod-media-container video {
    width: 40%;
    max-height: 500px;
    border-radius: 8px;
    background: #000;
}

/* Media Info Table */
.pintod-media-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pintod-media-table th, 
.pintod-media-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.pintod-media-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    width: 30%;
}

.pintod-media-table tr:last-child td {
    border-bottom: none;
    text-align: center;
    padding: 20px;
}

/* Download Button */
.download-btn {
    display: flex;
    background-color: #e60023; /* Pinterest red */
    color: white;
    padding: 19px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(230, 0, 35, 0.3);
    border: none;
    cursor: pointer;
}
.download-btn i{
    padding-right: 5px;
}
.download-btn:hover {
    background-color: #c5001e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
}

/* Responsive Layout */
@media (min-width: 768px) {
    .pintod-media-container {
        flex-direction: row;
    }
    
    .pintod-gif-preview, 
    .pintod-image-preview, 
    .pintod-video-preview {
        width: 40%;
        padding: 30px;
    }
    
    .pintod-media-table {
        width: 60%;
        padding: 30px;
    }
    
    .pintod-media-table th, 
    .pintod-media-table td {
        padding: 15px 20px;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .pintod-media-table th, 
    .pintod-media-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* For smaller screens (tablets, mobile), make adjustments for better view */
    
    .form-input-container {
        flex-direction: column;
        align-items: stretch;
    }

    #pintod-form input[type="url"] {
        width: 88%;
        margin-bottom: 7px;
        padding: 15px;
        font-size: 15px;
    }

    .paste-btn {
        position: initial;
        padding: 15px;
        display: inline-block;
        margin-bottom: 7px;
        font-weight: bold;
    }
    #pintod-form{
        padding: 0;
    }

    #download-btn {
        width: 100%; /* Make Download button full width on mobile */
        padding: 15px;
        display: initial;
        font-weight: bold;
        font-size: 16px;
    }
    .pintod-media-container video{
        margin: 10px auto;
    }

}
