/* Instagram Reels Downloader Pro - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.igrd-wrapper {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

.igrd-wrapper * {
    box-sizing: border-box;
}

.igrd-card {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.igrd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.igrd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.igrd-header {
    text-align: center;
    margin-bottom: 2rem;
}

.igrd-icon-bg {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.igrd-main-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.igrd-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.igrd-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.igrd-header p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.igrd-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.igrd-input-wrapper {
    position: relative;
    width: 100%;
}

.igrd-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.igrd-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 48px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    color: #2d3748;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.igrd-input-wrapper input:focus {
    border-color: #bc1888;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(188, 24, 136, 0.1);
}

.igrd-input-wrapper input::placeholder {
    color: #cbd5e0;
}

.igrd-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-size: 200% auto;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
}

.igrd-btn:hover {
    background-position: right center;
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
    transform: translateY(-2px);
}

.igrd-btn:active {
    transform: translateY(0);
}

.igrd-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Animation */
.igrd-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.igrd-spinner > div {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 100%;
    display: inline-block;
    animation: igrd-bouncedelay 1.4s infinite ease-in-out both;
}

.igrd-spinner .igrd-bounce1 {
    animation-delay: -0.32s;
}

.igrd-spinner .igrd-bounce2 {
    animation-delay: -0.16s;
}

@keyframes igrd-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Results Section */
.igrd-result-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #edf2f7;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.igrd-error-msg {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.igrd-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.igrd-thumbnail {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    background: #f7fafc;
    aspect-ratio: 9/16;
}

.igrd-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.igrd-thumbnail-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.igrd-thumbnail:hover .igrd-thumbnail-overlay {
    opacity: 1;
}

.igrd-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #dc2743;
}

.igrd-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a202c;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.igrd-download-link:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.igrd-download-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .igrd-card {
        padding: 1.5rem;
    }
    
    .igrd-header h2 {
        font-size: 1.5rem;
    }
}
