/* Reset e variáveis */
:root {
    --primary-color: #8B0000;
    --secondary-color: #5a3921;
    --accent-color: #4CAF50;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

#misterio-info {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

#progress-indicator {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Container de cards */
#prayer-cards-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.prayer-cards-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.prayer-card {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.prayer-text {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.prayer-type {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Controles */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.control-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

#progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 1.5rem;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.5s ease;
}

/* Menu em linha */
.menu-row {
    display: flex;
    flex-direction: column;
}

#menu-options {
    flex-direction: row;
    bottom: 70px;
    right: 0;
    gap: 0.5rem;
}

/* Submenu */
.submenu {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 0.5rem;
    margin-top: 3rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.submenu-option {
    background: none;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

.submenu-option:hover {
    background: #f0f0f0;
}

/* Menu flutuante */
.fixed-menu {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

.menu-options {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-option {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.menu-option:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.menu-option i {
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.pix-info {
    margin: 1.5rem 0;
}

.pix-key {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
    margin: 0.5rem auto;
}

.copy-btn:hover {
    background: var(--secondary-color);
}

.qrcode-container {
    margin-top: 1.5rem;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.qrcode-placeholder i {
    font-size: 3rem;
    color: #666;
}

.no-scroll {
    overflow: hidden;
}

/* Footer */
footer {
    background: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instagram-btn {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.instagram-btn:hover {
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 600px) {
    .prayer-card {
        padding: 1.5rem;
    }

    .prayer-text {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .controls {
        padding: 1rem;
    }

    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .menu-options {
        flex-direction: column;
    }
    
    .menu-option {
        justify-content: center;
    }
}