:root {
    --secondary: #9b59b6;
}

/* About Me Section */
.about-section {
    padding: 4rem 0;
}

.about-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #8e44ad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-5px);
}

/* Instagram Gallery */
.instagram-section {
    padding: 4rem 0;
    background: var(--light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.instagram-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.instagram-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.instagram-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.instagram-link {
    text-align: center;
    margin-top: 2rem;
}

.btn-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-instagram:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(131,58,180,0.4);
}

/* Board Games Section */
.boardgames-section {
    padding: 4rem 0;
}

.collection-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--secondary);
    background: white;
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--secondary);
    color: white;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#wishlistGrid .game-image {
    height: 150px; /* Smaller height for wishlist items */
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    height: 200px;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
}

.game-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.status-wishlist {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-own { background: #e8f5e9; color: #27ae60; }
.status-wishlist { background: #fff3e0; color: #f39c12; }
.status-played { background: #e3f2fd; color: #2196f3; }

/* Books Section */
.books-section {
    padding: 4rem 0;
    background: var(--light);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.book-cover {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.book-content {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.book-author {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Section styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item {
    margin: 1.5rem 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .instagram-grid,
    .games-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
}