
/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f9f4e8;
    color:#333;
    transition:.3s;
}

/* ==========================
   VARIÁVEIS
========================== */

:root{

    --primary:#5f8f2f;
    --secondary:#8b5e34;
    --accent:#d8b36a;

    --light:#f9f4e8;
    --white:#ffffff;

    --text:#333333;

    --shadow:0 8px 20px rgba(0,0,0,.10);

}

/* ==========================
   DARK MODE
========================== */

body.dark{

    background:#1e1e1e;
    color:#ffffff;

}

body.dark .card,
body.dark .form-card,
body.dark .time-box{

    background:#2a2a2a;
    color:#ffffff;

}

body.dark input{

    background:#333;
    color:white;
    border:1px solid #555;

}

/* ==========================
   BOTÃO TEMA
========================== */

.theme-toggle{

    position:fixed;

    top:20px;
    right:20px;

    border:none;

    width:50px;
    height:50px;

    border-radius:50%;

    background:var(--secondary);

    color:white;

    cursor:pointer;

    z-index:1000;

    box-shadow:var(--shadow);

}

/* ==========================
   HERO
========================== */

.hero {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        ),
        url("../assets/images/hero-banner_att.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay{

    width:100%;
    height:100%;

    background: rgba(0,0,0,.30);

    display:flex;
    align-items:center;
    justify-content:center;

}

.hero-content {

    max-width: 700px;

    width: 100%;

    text-align:center;

    margin: 0 auto;

    backdrop-filter: blur(8px);

    background: rgba(0,0,0,0.15);

    padding: 30px;

    border-radius: 25px;

}

.hero-content h1{
    font-size:3.2rem;
    line-height:1.1;
    margin-bottom:20px;
}

.hero-content h2{

    display:inline-block;

    background:rgba(255,209,102,.15);

    backdrop-filter:blur(5px);

    padding:12px 30px;

    border-radius:50px;

    font-size:2.5rem;

    text-align: center;

    margin-top: 10px;

    color: #FFD700;

}

.hero-content p{

    margin-top:20px;
    font-size:1.2rem;

}

.hero-message{
    font-size: 1.3rem;
    color: #fff7d6;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-btn{
    display:inline-block;
    margin-top:25px;

    padding:16px 35px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    background:linear-gradient(
        135deg,
        #6dbb35,
        #4CAF50
    );

    color:white;

    box-shadow:
        0 8px 20px rgba(76,175,80,.35);

    transition:.3s;
}

.hero-btn:hover{
    transform:translateY(-3px);
}


/* ==========================
   CONTADOR
========================== */

.countdown-section{

    text-align:center;
    padding:60px 20px;

}

.countdown-section h2{

    margin-bottom:30px;
    color:var(--secondary);

}

.countdown{

    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;

}

.time-box{

    width:120px;

    background:white;

    border-radius:15px;

    padding:25px;

    box-shadow:var(--shadow);

}

.time-box span{

    display:block;

    font-size:2rem;
    font-weight:700;

    color:var(--primary);

}

.time-box small{

    color:#666;

}

/* ==========================
   EVENTO
========================== */

.event-info{

    padding:40px 20px;

}

.card{

    text-align: center;

    max-width:800px;

    margin:auto;

    background:white;

    border-radius:20px;

    padding:40px;

    box-shadow:var(--shadow);

}

.card h2{

    text-align:center;
    margin-bottom:30px;

    color:var(--secondary);

}

.info-item{

    justify-content: center;
    display:flex;
    align-items:flex-start;

    gap:15px;

    margin-bottom:20px;

    font-size:1.1rem;

}

.info-item i{

    color:var(--primary);

    font-size:1.5rem;

    margin-top:6px;

    flex-shrink:0;

    transform: translateY(-3px);
}

.address{

    margin-top:20px;
    text-align:center;

}

/* ==========================
   MAPA
========================== */

.map-section{

    padding:60px 20px;

    text-align:center;

}

.map-section h2{

    margin-bottom:20px;

}

.map-section iframe{

    width:100%;
    max-width:900px;

    height:450px;

    border:none;

    border-radius:20px;

    box-shadow:var(--shadow);

}

/* ==========================
   RSVP
========================== */

.rsvp-section{

    padding:60px 20px;

}

.form-card{

    max-width:800px;

    margin:auto;

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:var(--shadow);

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

}

.form-card h2{

    text-align:center;
    margin-bottom:30px;

    color:var(--secondary);

}

form{

    display:flex;
    flex-direction:column;
    gap:15px;

}

input{

    padding:15px;

    border:1px solid #ccc;

    border-radius:10px;

    font-size:1rem;

}

.radio-group{

    display:flex;
    align-items:center;
    gap:10px;

}

.radio-group input{

    width:auto;

}

#companions-container{

    margin-top:20px;

}

.companion-input{

    margin-bottom:10px;

}

#add-companion{

    background:var(--accent);

    border:none;

    padding:15px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

}

.confirm-btn{

    background:var(--primary);

    color:white;

    border:none;

    padding:18px;

    border-radius:10px;

    cursor:pointer;

    font-size:1rem;

    transition:.3s;

}

.confirm-btn:hover{

    transform:translateY(-3px);

}

/* ==========================
   COMPARTILHAR
========================== */

.share-section{

    text-align:center;

    padding:40px;

}

#share-btn{

    background:#25D366;

    color:white;

    border:none;

    padding:18px 30px;

    border-radius:12px;

    cursor:pointer;

    font-size:1rem;

    font-weight:600;

}

/* ==========================
   SUCESSO
========================== */

.success-message{

    display:none;

    text-align:center;

    margin:40px auto;

    max-width:700px;

    background:#e8f8eb;

    padding:40px;

    border-radius:20px;

}

.success-message i{

    font-size:4rem;

    color:green;

    margin-bottom:20px;

}

/* ==========================
   FOOTER
========================== */

footer{

    text-align:center;

    padding:30px;

    background:var(--secondary);

    color:white;

    margin-top:50px;

}

/* DASHBOARD */

.dashboard-container {

    max-width: 1200px;

    margin: auto;

    padding: 40px 20px;
}

.dashboard-container h1 {

    text-align: center;

    margin-bottom: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.logout-btn:hover {
    opacity: 0.9;
}

.stats {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    margin-bottom: 40px;
}

.stat-card {

    flex: 1;

    min-width: 220px;

    background: white;

    padding: 25px;

    border-radius: 15px;

    box-shadow: var(--shadow);

    text-align: center;
}

.stat-card h2 {

    font-size: 2.5rem;

    color: var(--primary);
}

.guest-card {

    background: white;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 15px;

    box-shadow: var(--shadow);
}

.guest-card p {

    margin: 8px 0;
}

.guest-card strong {

    display: block;

    margin-top: 12px;
    margin-bottom: 6px;
}

.guest-card h3 {

    color: var(--secondary);

    margin-bottom: 15px;
}

.companions-list {

    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px solid #ddd;
}

.companions-list strong {

    color: #9c6a2d;
}

.companions-list p {

    margin-top: 8px;
}

.search-container {

    margin-bottom: 25px;
}

#search {

    width: 100%;

    padding: 14px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 1rem;
}

.delete-btn {

    margin-top: 15px;

    background: #dc3545;

    color: white;

    border: none;

    padding: 10px 15px;

    border-radius: 8px;

    cursor: pointer;

    transition: .3s;
}

.delete-btn:hover {

    transform: translateY(-2px);
}

.actions {

    margin-bottom: 20px;

    display: flex;

    justify-content: flex-end;
}

#export-btn {

    background: #198754;

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    transition: .3s;
}

#export-btn:hover {

    transform: translateY(-2px);
}

canvas {

    max-width: 500px;

    margin: 20px auto;

    display: block;

}

#presencaChart {
    max-width: 500px;
    max-height: 350px;
    margin: 0 auto;
}

.chart-description {

    text-align: center;

    margin-top: 15px;

    color: #666;

    font-size: 14px;

}

.map-section {
    text-align: center;
}

.maps-btn {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    align-items: center;
    gap: 8px;

    padding: 14px 28px;

    background: #4CAF50;
    color: white;
    text-decoration: none;

    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;

    transition: all 0.3s ease;
}

.maps-btn:hover {
    transform: translateY(-3px);
}

.companion-wrapper{

    display:flex;

    gap:10px;

    margin-bottom:10px;

    align-items:center;

}

.companion-wrapper input{

    flex:1;

}

.remove-companion{

    background:#dc3545;

    color:white;

    border:none;

    border-radius:8px;

    padding:12px 14px;

    cursor:pointer;

    font-size:1rem;

}

.remove-companion:hover{

    opacity:.9;

}

/* ==========================
RESPONSIVIDADE
========================== */

@media (max-width:768px){

    .hero{

        min-height:120vh;

        background:
            linear-gradient(
                rgba(0,0,0,0.35),
                rgba(0,0,0,0.35)
            ),
            url("../assets/images/hero-banner_mobile.png");

        background-size:cover;
        background-position:center;
        background-repeat:no-repeat;

        align-items:flex-start;
    }

    .hero-content{

        width:90%;

        padding:20px;

        margin-top:260px;

    }


.hero-content h1 {
    font-size: 2.1rem;
}

.hero-content h2 {
    font-size: 1.6rem;
}

.hero-content p{
    font-size:1rem;
}

.hero-btn{
    padding:14px 28px;
}

.countdown {
    gap: 10px;
}

.time-box {
    width: 90px;
    padding: 15px;
}

.card,
.form-card {
    padding: 25px;
}

.dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.stat-card {
    min-width: 100%;
}

.actions {
    justify-content: center;
}


}

@media (max-width: 480px) {


.hero-content h1 {
    font-size: 2rem;
}

.hero-content h2 {
    font-size: 1.5rem;
}

.card,
.form-card {
    padding: 18px;
}

.time-box {
    width: 75px;
    padding: 12px;
}


}


html {
    scroll-behavior: smooth;
}