/* Buttons - Стилі кнопок з Gemini ефектами */

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 300% 300%;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
    will-change: transform, box-shadow;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6),
                0 6px 20px rgba(139, 92, 246, 0.4),
                0 0 30px rgba(236, 72, 153, 0.3);
    background-position: 100% 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 0.8;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15),
        rgba(139, 92, 246, 0.15),
        rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3),
                0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Generate Button with Enhanced Gemini Effects */
.generate-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg,
        #6366f1 0%,
        #8b5cf6 25%,
        #ec4899 50%,
        #f59e0b 75%,
        #10b981 100%);
    background-size: 300% 300%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    animation: gradientShift 8s ease infinite;
    will-change: transform, box-shadow;
}

.generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.3),
        rgba(255,255,255,0.1),
        transparent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.generate-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f59e0b, #10b981);
    background-size: 300% 300%;
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    animation: gradientShift 8s ease infinite;
}

.generate-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.7),
                0 6px 20px rgba(139, 92, 246, 0.5),
                0 0 50px rgba(236, 72, 153, 0.4);
}

.generate-btn:hover::before {
    opacity: 1;
}

.generate-btn:hover::after {
    opacity: 0.9;
}

.generate-btn:active {
    transform: translateY(-2px) scale(0.99);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.generate-btn:disabled:hover::after {
    opacity: 0;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

/* Enhanced Pricing Buttons */
.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.pricing-btn.primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 6s ease infinite;
}

.pricing-btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-btn.primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.pricing-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5),
                0 4px 12px rgba(139, 92, 246, 0.3);
}

.pricing-btn.primary:hover::before {
    opacity: 1;
}

.pricing-btn.primary:hover::after {
    opacity: 0.7;
}

.pricing-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.pricing-btn.secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-btn.secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.pricing-btn.secondary:hover::before {
    opacity: 1;
}

/* Enhanced Result Buttons */
.result-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.result-btn.primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    background-size: 200% 200%;
    color: white;
}

.result-btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background-position: 100% 0;
}

.result-btn.primary:hover::before {
    opacity: 1;
}

.result-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.result-btn.secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-btn.secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.result-btn.secondary:hover::before {
    opacity: 1;
}

/* Enhanced Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    z-index: -2;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover::after {
    opacity: 0.6;
}

/* Light theme button overrides */
[data-theme="light"] .btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

[data-theme="light"] .social-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .social-btn:hover {
    background: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .result-actions {
        flex-direction: column;
    }
}
