/* Variáveis de Estilo */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --text-color: #333;
    --bg-color: #f0f4f8;
    --card-bg: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilo Geral do Body */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Modo Escuro */
body.dark-mode {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #e0e0e0;
    --bg-color: #1a1d2e;
    --card-bg: #25293a;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--bg-color);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
    object-fit: contain;
}

/* Auth Container */
#auth-container {
    margin-left: auto;
}

/* Google Login Button */
.google-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #4285f4;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.google-login-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Profile Menu */
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 220px;
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.profile-dropdown.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-color);
    text-align: left;
}

.dropdown-header strong {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.dropdown-header span {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
    color: var(--secondary-color) !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-content {
    padding: 2rem 1.5rem;
}

.side-menu-content h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--bg-color);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    flex-grow: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
}

/* Filters Container */
.filters-container {
    padding: 2rem 5%;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-bottom: 1rem;
}

.card.featured:hover {
    transform: translateY(-3px) scale(1.02);
}

.card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card.featured i {
    color: white;
    font-size: 2.5rem;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.card.featured p {
    color: white;
    opacity: 0.9;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.3rem;
        position: static;
        transform: none;
    }

    .google-login-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-bar {
        max-width: 400px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        width: 1.2rem;
        height: 1.2rem;
    }

    .google-login-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        gap: 0.3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .search-bar {
        max-width: 300px;
    }

    .search-bar input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 0.6rem 1rem;
    }

    .card {
        padding: 1rem;
    }

    .card h4 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .theme-toggle {
        padding: 0.8rem;
        bottom: 15px;
        right: 15px;
    }
}

.card-btn {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s ease;
    }
    .card-btn:hover {
        background: var(--secondary-color);
    }