/* Sójka AI - Custom Styles */

.gradient-bg {
    background-image: linear-gradient(120deg, var(--tw-gradient-from) 0%, var(--tw-gradient-to) 100%);
}

.btn-install {
    position: relative;
    background-color: white;
    border: 1px solid #D1D5DB;
    color: #2563EB;
    transition: all 0.3s ease;
}

.btn-install:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.1);
}

.btn-install .border-dashed {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 2px dashed #A5B4FC;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-install:hover .border-dashed {
    opacity: 1;
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.bird-svg path,
.bird-svg line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4s ease-in-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.safe { 
    background-color: #dcfce7; 
}

.unsafe { 
    background-color: #fef2f2; 
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563EB;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-limit-warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
}

.transition-all {
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 1px #2563EB;
}

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

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.feedback-buttons {
    position: relative;
}

.feedback-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: white;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feedback-button.positive:hover,
.feedback-button.positive.selected {
    border-color: #059669;
    color: #059669;
    background: #ecfdf5;
}

.feedback-button.negative:hover,
.feedback-button.negative.selected {
    border-color: #DC2626;
    color: #DC2626;
    background: #fef2f2;
}

.feedback-button.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feedback-message {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feedback-message.show {
    opacity: 1;
}

.feedback-message::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1F2937;
}

/* Additional optimizations for better performance */
.team-card,
.btn-install,
.partner-logo {
    will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card:hover {
        transform: translateY(-2px);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bird-svg path,
    .bird-svg line {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }

    .team-card,
    .btn-install,
    .partner-logo {
        transition: none;
    }
}