﻿/* Auth and User Controls */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-btn {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

    .auth-btn:hover {
        background-color: #f5f5f5;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.logout-btn-container, .admin-btn-container {
    display: flex;
    align-items: center;
}

.logout-btn, .admin-btn {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

    .logout-btn:hover, .admin-btn:hover {
        transform: scale(1.1);
    }

.user-greeting {
    font-weight: bold;
    color: #d32f2f;
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e4e2e2;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

    .category-btn:hover, .category-btn.active {
        background-color: #f0f0f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .category-btn.active {
        color: #8b0000;
        font-weight: bold;
        border-color: #8b0000;
    }

/* Hobby Container */
.hobby-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #8b0000;
    margin-bottom: 15px;
    font-size: 2rem;
}

.section-description {
    text-align: center;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Featured Hobbies */
.featured-hobbies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hobby-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: blink 32s infinite alternate;
}

    .hobby-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.hobby-image {
    height: 150px;
    overflow: hidden;
}

.hobby-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hobby-item:hover .hobby-img {
    transform: scale(1.05);
}

.hobby-link {
    display: block;
    padding: 15px;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .hobby-link:hover {
        color: #8b0000;
    }

.hobby-title {
    display: block;
}

.more-button {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-more:hover {
        background-color: #6b0000;
        box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
    }

/* Hobby Categories */
.hobby-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.hobby-category {
    padding: 8px 16px;
    background-color: #2ba11c;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

    .hobby-category:hover {
        background-color: #218618;
        transform: translateY(-2px);
    }

/* Hobby Sections */
.hobby-section {
    margin-bottom: 40px;
}

.section-subtitle {
    color: #8b0000;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hobby-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.hobby-column {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .hobby-column h3 {
        color: #2d3748;
        margin-top: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

.hobby-website {
    display: block;
    color: #4299e1;
    text-decoration: none;
    margin: 10px 0;
    font-weight: 500;
}

.hobby-column p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-hobby {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-hobby:hover {
        background-color: #8b0000;
        color: white;
    }

.hobby-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

    .hobby-links a {
        padding: 6px 12px;
        background-color: #f5f5f5;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
    }

        .hobby-links a:hover {
            background-color: #8b0000;
            color: white;
        }

.motivation-text,
.travel-notes,
.language-notes {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
}

.motivation-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

    .motivation-links a {
        padding: 6px 12px;
        background-color: #e3f2fd;
        border-radius: 4px;
        text-decoration: none;
        color: #1976d2;
        transition: all 0.3s ease;
    }

        .motivation-links a:hover {
            background-color: #bbdefb;
        }

/* Animations */
@keyframes blink {
    0% {
        background-color: rgba(139, 0, 0, 0.1);
    }

    50% {
        background-color: rgba(0, 0, 139, 0.1);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-hobbies {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .hobby-column {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .category-nav {
        gap: 5px;
    }

    .category-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .hobby-links,
    .motivation-links {
        grid-template-columns: 1fr;
    }
}
