@import url('https://fonts.googleapis.com/');

body {
    font-family: "Comic Relief", system-ui;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffebe4;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.home-header {
    background-color: #a06e57;
    color: #fff;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.home-header .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-header .logo {
    height: 60px;
}

.home-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

.home-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.home-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    align-items: center;
    display: flex;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    ion-icon {
        margin-right: 5px;
      }
}

span ion-icon {
    color: #FFD54F;
  }

.home-header nav a.button {
    background-color: #7b4f3b;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.home-header nav a:hover {
    background-color: rgba(123, 79, 59, 0.5);
}

.theme-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    padding: 5px;
    margin-left: 15px;
    vertical-align: middle;
    color: white;
    transition: transform 0.2s ease, color 0.3s ease;
}

.theme-toggle-button:hover {
    transform: scale(1.1);
}

.hero-image {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    z-index: 2;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.button-doar {
    background-color: #a06e57;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button-doar:hover {
    background-color: #7b4f3b;
}

.campaign-types {
    text-align: center;
    padding: 50px 20px;
    color: #a06e57;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.campaign-types h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 50px;
    transition: color 0.3s ease;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card-item {
    text-align: center;
    width: 150px;
}

.card-item img {
    background-color: #a06e57;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.card-item p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #7b4f3b;
    transition: color 0.3s ease;
}

.call-to-action {
    text-align: center;
    padding: 80px 20px;
    background-color: #fce2c0;
    color: #7b4f3b;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.call-to-action h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.button-cadastrar {
    background-color: #a06e57;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button-cadastrar:hover {
    background-color: #7b4f3b;
}

.home-footer {
    background-color: #7b4f3b;
    color: #fff;
    padding: 40px 20px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.join-us-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.links-column a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.links-column a:hover {
    text-decoration: underline;
}

copyright {
    font-size: 0.9rem;
    margin-top: 20px;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #a06e57;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.campanhas-grid,
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card-campanha,
.card-evento {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card-campanha:hover,
.card-evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-campanha h3,
.card-evento h3 {
    color: #a06e57;
    margin-top: 0;
}

.card-campanha .progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.card-campanha .progress-bar {
    background-color: #7b4f3b;
    height: 100%;
    transition: width 0.5s ease;
}

.btn,
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a06e57;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn-primary:hover {
    background-color: #7b4f3b;
}

.btn-excluir {
    background-color: #dc3545;
    margin-left: 10px;
}

.btn-excluir:hover {
    background-color: #c82333;
}

#loginPage,
#cadastroPage,
#criarCampanhaPage {
    background-color: #fcebd7;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 40px auto;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #7b4f3b;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d4c1a7;
    background-color: #fef8f0;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #a06e57;
    outline: none;
}

.message {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* TODO: Tema Escuro */

body.dark-mode {
    background-color: #333;
    color: #e6e0d8;
}

.dark-mode .home-header {
    background-color: #382d27;
}

.dark-mode .home-header h1 {
    color: #e6e0d8;
}

.dark-mode .home-header nav a.button {
    background-color: #4a3e36;
}

.dark-mode .home-header nav a:hover {
    background-color: #5d514a;
}

.dark-mode .theme-toggle-button {
    color: #FFD54F;
}

.dark-mode .hero-image::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.dark-mode .campaign-types {
    background-color: #261e1b;
    color: #e6e0d8;
}

.dark-mode .campaign-types h3 {
    color: #e6e0d8;
}

.dark-mode .card-item img {
    background-color: #4a3e36;
}

.dark-mode .card-item p {
    color: #e6e0d8;
}

.dark-mode .call-to-action {
    background-color: #261e1b;
    color: #e6e0d8;
}

.dark-mode .call-to-action h3 {
    color: #e6e0d8;
}

.dark-mode .button-doar,
.dark-mode .button-cadastrar {
    background-color: #4a3e36;
    color: #e6e0d8;
}

.dark-mode .button-doar:hover,
.dark-mode .button-cadastrar:hover {
    background-color: #5d514a;
}

.dark-mode .home-footer {
    background-color: #382d27;
    color: #e6e0d8;
}

.dark-mode .home-footer a {
    color: #e6e0d8;
}

.dark-mode .campanhas-grid,
.dark-mode .eventos-grid {
    color: #e6e0d8;
}

.dark-mode .card-campanha,
.dark-mode .card-evento {
    background-color: #42352e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .card-campanha:hover,
.dark-mode .card-evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .card-campanha h3,
.dark-mode .card-evento h3 {
    color: #ffd54f;
}

.dark-mode .btn,
.dark-mode .btn-primary {
    background-color: #4a3e36;
}

.dark-mode .btn:hover,
.dark-mode .btn-primary:hover {
    background-color: #5d514a;
}

.dark-mode #loginPage,
.dark-mode #cadastroPage,
.dark-mode #criarCampanhaPage {
    background-color: #42352e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .form-field label {
    color: #e6e0d8;
}

.dark-mode .form-field input,
.dark-mode .form-field select,
.dark-mode .form-field textarea {
    background-color: #42352e;
    border-color: #7b6a5d;
    color: #e6e0d8;
}

@media (max-width: 768px) {
    .home-header nav ul {
        gap: 10px;
    }

    .home-header nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .button-doar {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .campaign-types h3 {
        font-size: 1.5rem;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .call-to-action h3 {
        font-size: 1.8rem;
    }

    .footer-links {
        flex-direction: row;
        gap: 30px;
    }

    .campanhas-grid,
    .eventos-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }
}