/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #E6E6FA 50%, #DDA0DD 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
}

/* Navigation Header */
.nav-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 0 0 25px 25px;
    margin: 0 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(147, 112, 219, 0.1);
    color: #9370DB;
}

.nav-link.active {
    background: #9370DB;
    color: white;
}

.nav-link.signin-btn {
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(147, 112, 219, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.nav-link.signin-btn:hover {
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

/* Main Content */
.main-content {
    padding: 40px 20px 0;
}

/* Hero Pet Section */
.hero-pet-section {
    height: 400px;
    position: relative;
    margin-bottom: 40px;
}

.sky-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #87CEEB 0%, #E6E6FA 70%, #DDA0DD 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.sparkle:nth-child(3) {
    bottom: 40%;
    left: 25%;
    animation-delay: 2s;
}

.sparkle:nth-child(4) {
    bottom: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-pet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.main-cloud {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 60px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
}

.main-cloud::before,
.main-cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 50%;
}

.main-cloud::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 20px;
}

.main-cloud::after {
    width: 100px;
    height: 100px;
    top: -50px;
    right: 20px;
}

.featured-pet {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero-pet-image {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Collection Section */
.collection-section {
    padding: 0 20px;
}

.collection-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

/* Pet Collection Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-cloud {
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pet-cloud::before,
.pet-cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 50%;
}

.pet-cloud::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 15px;
}

.pet-cloud::after {
    width: 35px;
    height: 35px;
    top: -17px;
    right: 15px;
}

.pet-avatar {
    font-size: 24px;
    z-index: 2;
    position: relative;
}

.pet-avatar-simple {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pet-avatar-simple:hover {
    transform: scale(1.1);
}

.breed-badge {
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* New Arrivals Panel */
.arrivals-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(147, 112, 219, 0.2);
}

.arrivals-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.arrival-group {
    display: flex;
    gap: 15px;
}

.arrival-pet {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.arrival-pet:hover {
    transform: scale(1.1);
}

.sparkle-divider {
    font-size: 20px;
    color: #9370DB;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Pet Modal Styles */
.pet-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.pet-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.pet-detail-card {
    padding: 30px;
    text-align: center;
}

.pet-detail-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pet-detail-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pet-detail-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.pet-detail-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.pet-detail-info p {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1rem;
}

.pet-detail-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-featured {
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
    color: white;
}

.badge-new {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
}

/* Pet placeholder styles */
.pet-placeholder {
    opacity: 0.6;
    cursor: default;
}

.pet-placeholder:hover {
    transform: none !important;
}

/* Enhanced hover effects for clickable pets */
.pet-card[data-pet-id] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-card[data-pet-id]:hover {
    transform: translateY(-8px) scale(1.02);
}

.arrival-pet[data-pet-id] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrival-pet[data-pet-id]:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .collection-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-pet-image {
        width: 120px;
    }
    
    .main-cloud {
        width: 160px;
        height: 100px;
    }
    
    .collection-container {
        padding: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .pets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        font-size: 14px;
    }
    
    .hero-pet-section {
        height: 300px;
    }
}
