/* ===================================
   PETS PAGE - COMPLETE STYLES
   =================================== */

/* Filter Section */
.filter-section {
    padding: 2rem 0 3rem;
    background: rgba(17, 24, 39, 0.5);
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-label svg {
    color: #fbbf24;
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23e2e8f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    min-width: 200px;
}

.filter-select:hover {
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.filter-select:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.filter-select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem;
}

/* Pets Section */
.pets-section {
    padding: 4rem 0;
    position: relative;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Pet Card Base Styles */
.pet-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pet-card:hover::before {
    opacity: 1;
}

/* Rarity Badge */
.pet-rarity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Rarity-Specific Colors */
/* Common (Gewöhnlich) */
.rarity-common {
    border-color: rgba(156, 163, 175, 0.3);
}

.rarity-common:hover {
    border-color: rgba(156, 163, 175, 0.6);
    box-shadow: 0 20px 40px rgba(156, 163, 175, 0.2);
}

.rarity-common .pet-rarity-badge {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #ffffff;
}

.rarity-common .pet-image-container::after {
    background: radial-gradient(circle, rgba(156, 163, 175, 0.2) 0%, transparent 70%);
}

/* Uncommon (Selten) */
.rarity-uncommon {
    border-color: rgba(34, 197, 94, 0.3);
}

.rarity-uncommon:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.rarity-uncommon .pet-rarity-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
}

.rarity-uncommon .pet-image-container::after {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}

/* Rare */
.rarity-rare {
    border-color: rgba(59, 130, 246, 0.3);
}

.rarity-rare:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.rarity-rare .pet-rarity-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.rarity-rare .pet-image-container::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

/* Epic (Hero) */
.rarity-epic {
    border-color: rgba(168, 85, 247, 0.3);
}

.rarity-epic:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.rarity-epic .pet-rarity-badge {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: #ffffff;
}

.rarity-epic .pet-image-container::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
}

/* Legendary */
.rarity-legendary {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
}

.rarity-legendary:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.3);
}

.rarity-legendary .pet-rarity-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    animation: legendaryGlow 2s ease-in-out infinite;
}

.rarity-legendary .pet-image-container::after {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
}

/* Mythic */
.rarity-mythic {
    border-color: rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 1));
}

.rarity-mythic:hover {
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.4), 0 0 60px rgba(168, 85, 247, 0.2);
}

.rarity-mythic .pet-rarity-badge {
    background: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
    background-size: 200% 200%;
    color: #ffffff;
    animation: mythicShimmer 3s ease infinite;
}

.rarity-mythic .pet-image-container::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
}

/* Pet Image Container */
.pet-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.3));
}

.pet-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    pointer-events: none;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.pet-card:hover .pet-image {
    transform: scale(1.1);
}

/* Pet Content */
.pet-content {
    padding: 1.5rem;
}

.pet-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Pet Stats */
.pet-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(4px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

/* Animations */
@keyframes legendaryGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}

@keyframes mythicShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
}

.cta-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    animation: pulse 3s ease-in-out infinite;
}

.cta-visual svg {
    position: relative;
    z-index: 2;
    color: #3b82f6;
    opacity: 0.6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-select {
        width: 100%;
        max-width: 300px;
    }

    .pets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .pet-image-container {
        height: 240px;
    }

    .pet-name {
        font-size: 1.25rem;
    }

    .cta-card {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-visual {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .pet-content {
        padding: 1rem;
    }

    .stat-row {
        padding: 0.5rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 0.9rem;
        padding: 0.2rem 0.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pet-card {
    animation: fadeIn 0.6s ease forwards;
}

.pet-card:nth-child(1) { animation-delay: 0.05s; }
.pet-card:nth-child(2) { animation-delay: 0.1s; }
.pet-card:nth-child(3) { animation-delay: 0.15s; }
.pet-card:nth-child(4) { animation-delay: 0.2s; }
.pet-card:nth-child(5) { animation-delay: 0.25s; }
.pet-card:nth-child(6) { animation-delay: 0.3s; }
.pet-card:nth-child(7) { animation-delay: 0.35s; }
.pet-card:nth-child(8) { animation-delay: 0.4s; }
.pet-card:nth-child(9) { animation-delay: 0.45s; }
.pet-card:nth-child(10) { animation-delay: 0.5s; }