/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&display=swap');

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffdde1 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Título principal */
.main-title {
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-title h1 {
    font-size: 3.5em;
    color: #e73c7e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    animation: heartbeat 1.5s infinite;
    font-family: 'Pacifico', cursive;
    letter-spacing: 2px;
}

.heart-left, .heart-right {
    font-size: 2em;
    margin: 0 20px;
    animation: float-heart 3s ease-in-out infinite;
}

.heart-left {
    animation-delay: 0s;
}

.heart-right {
    animation-delay: 1.5s;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float-heart {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Contador */
.counter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.counter-title {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.counter-title h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2em;
    color: #e73c7e;
    margin: 0;
    padding: 0 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.counter-item span {
    font-size: 2.5em;
    font-weight: 600;
    color: #e73c7e;
}

.counter-item label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Frase do dia */
.quote-container {
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#daily-quote {
    font-size: 1.5em;
    color: #e73c7e;
    line-height: 1.4;
    transition: opacity 0.5s ease;
}

/* Carrossel com efeito Polaroid */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
    padding: 20px 0;
}

.polaroid-swiper {
    width: 100%;
    padding: 60px 0;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 340px;
    height: 430px;
    margin: 0 25px;
    border-radius: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s;
    background-color: transparent;
    overflow: visible;
}

/* Efeito Polaroid */
.polaroid-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 15px 15px 50px 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: rotate(var(--rotate, 0deg));
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
    will-change: transform;
}

.polaroid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
    pointer-events: none;
}

.polaroid-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.polaroid-image {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: cover;
    background-color: #f9f9f9;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Melhorias para as legendas das fotos polaroid */
.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* Exibe texto completo ao passar o mouse */
.polaroid-card:hover .polaroid-caption {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.polaroid-date {
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-family: 'Caveat', cursive;
    font-size: 14px;
    color: #999;
}

/* Efeito de filme polaroid */
.polaroid-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 35px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Ajusta tamanho e visual para cada slide */
.swiper-slide:nth-child(3n) .polaroid-card {
    --rotate: 2deg;
}

.swiper-slide:nth-child(3n+1) .polaroid-card {
    --rotate: -2deg;
}

.swiper-slide:nth-child(3n+2) .polaroid-card {
    --rotate: 1deg;
}

/* Setas de navegação */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background-color: rgba(231, 60, 126, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(231, 60, 126, 0.9);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
}

/* Paginação */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: rgba(231, 60, 126, 0.5);
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #e73c7e;
    transform: scale(1.2);
}

/* Estilo para tag polaroid de memorias */
.memory-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffdd57;
    color: #333;
    font-family: 'Caveat', cursive;
    font-size: 14px;
    padding: 3px 10px;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Estilo para fita adesiva */
.tape {
    position: absolute;
    width: 50px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tape-top {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
}

/* Modal de tela cheia */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreenImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #e73c7e;
    transform: scale(1.2);
}

.modal-controls {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.modal-nav-btn {
    background-color: rgba(231, 60, 126, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-nav-btn:hover {
    background-color: rgba(231, 60, 126, 0.9);
    transform: scale(1.1);
}

/* Área de Upload - Estilo melhorado */
.upload-form {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.upload-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.upload-input-container {
    margin-bottom: 20px;
    position: relative;
}

.upload-label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
    font-size: 18px;
    transition: all 0.3s;
}

.upload-label i {
    color: #e73c7e;
    margin-right: 10px;
}

#photoInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-size: 16px;
    transition: all 0.3s;
}

#photoInput:focus {
    border-color: #e73c7e;
    outline: none;
}

.upload-btn {
    background-color: #e73c7e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.upload-btn:hover {
    background-color: #d3226b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 60, 126, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-btn i {
    font-size: 20px;
}

.upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.upload-status.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.upload-status.success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.upload-status.uploading {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Coração Clicável e Animações */
.clickable-heart {
    position: fixed;
    font-size: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
    animation: pulse-heart 1.5s infinite alternate;
}

.clickable-heart:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
}

.clickable-heart:active {
    transform: scale(0.9);
}

.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

.heart-click {
    position: fixed;
    pointer-events: none;
    animation: heartClick 1s ease-out forwards;
    z-index: 999;
}

/* Botão de Música */
.music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(231, 60, 126, 0.9);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.music-button:hover {
    background: rgba(231, 60, 126, 1);
    transform: scale(1.05);
}

/* Animações */
@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

@keyframes heartClick {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Efeito de brilho no hover */
.polaroid-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    z-index: 3;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { 
        transform: translateX(-100%) translateY(-100%);
    }
    100% { 
        transform: translateX(100%) translateY(100%);
    }
}

/* Ajustes para o PhotoSwipe */
.pswp__bg {
    background-color: rgba(0, 0, 0, 0.85);
}

.pswp__ui--fit .pswp__top-bar,
.pswp__ui--fit .pswp__caption {
    background-color: rgba(0, 0, 0, 0.5);
}

.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
    background-color: rgba(231, 60, 126, 0.7);
}

.pswp__caption__center {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    font-size: 16px;
    font-family: 'Caveat', cursive;
    color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .counter-item {
        min-width: 80px;
        padding: 10px;
    }

    .counter-item span {
        font-size: 2em;
    }

    #daily-quote {
        font-size: 1.2em;
    }

    .preview-item {
        width: calc(50% - 10px);
    }

    .swiper-slide {
        width: 260px;
        height: 330px;
    }

    .music-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .polaroid-caption {
        font-size: 16px;
    }
    
    .pswp__caption__center {
        font-size: 14px;
    }

    .counter-title h2 {
        font-size: 1.8em;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .counter-title h2 {
        font-size: 1.6em;
        padding: 0 5px;
    }
    
    .counter-title {
        margin-bottom: 10px;
    }

    .counter-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .counter-item {
        min-width: 55px;
        padding: 6px;
        margin: 2px;
    }
    
    .counter-item span {
        font-size: 1.6em;
    }
    
    /* Carrossel ajustado para telas pequenas */
    .swiper-slide {
        width: 220px;
        height: 290px;
    }
    
    .polaroid-card {
        padding: 10px 10px 40px 10px;
    }
    
    .polaroid-caption {
        font-size: 14px;
        bottom: 12px;
    }
    
    /* Esconde os controles de navegação em telas muito pequenas */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    /* Melhorias para PhotoSwipe em mobile */
    .pswp__caption__center {
        font-size: 12px;
    }
    
    /* Ajusta o tamanho das mensagens de amor */
    .love-text {
        font-size: 18px;
    }
}

/* Melhorias para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .main-title {
        margin: 10px auto;
        padding: 10px;
    }
    
    .main-title h1 {
        font-size: 1.8em;
    }
    
    .counter-container {
        margin: 10px auto;
        padding: 10px;
    }
    
    .counter-item {
        min-width: 60px;
        padding: 5px;
    }
    
    .gallery-container {
        margin: 10px auto;
    }
    
    .swiper {
        height: 200px;
    }
    
    .upload-container {
        margin: 10px auto;
    }
    
    .music-button {
        transform: scale(0.8);
        right: 5px;
        bottom: 5px;
    }
}

/* Ajustes para toques em dispositivos móveis */
@media (hover: none) {
    .polaroid-card:hover {
        transform: rotate(var(--rotate)) translateY(0px);
    }
    
    .polaroid-card:active {
        transform: rotate(0deg) translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .polaroid-card:hover .polaroid-caption {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-color: transparent;
        box-shadow: none;
        transform: none;
    }
    
    .polaroid-card:active .polaroid-caption {
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        z-index: 20;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 5px 15px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-5px);
    }
}

/* Instrução para dispositivos móveis */
.mobile-instruction {
    display: none;
    text-align: center;
    margin: 10px auto;
    font-size: 14px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 20px;
    max-width: 300px;
}

.mobile-instruction i {
    color: #e73c7e;
    margin-right: 5px;
}

/* Corrige problemas com input em iOS */
input[type="file"] {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8;
}

input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: button;
    background-color: #e73c7e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
}

@supports (-webkit-touch-callout: none) {
    /* Corrige problemas específicos para iOS */
    input[type="text"],
    textarea,
    button.upload-btn {
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 8px !important;
    }
}

/* Otimizações para dispositivos touchscreen */
@media (pointer: coarse) {
    /* Exibe a instrução apenas em dispositivos touch */
    .mobile-instruction {
        display: block;
    }
    
    /* Aumenta a área clicável de botões */
    .upload-btn, 
    .music-button,
    .swiper-button-next,
    .swiper-button-prev {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Melhora o espaçamento do formulário */
    .upload-input-container {
        margin-bottom: 20px;
    }
    
    /* Ajustes para toque na polaroid */
    .polaroid-card {
        touch-action: manipulation;
    }
    
    /* Melhorias para o PhotoSwipe em dispositivos touch */
    .pswp__button {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Melhorias para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .swiper-slide {
        width: 300px;
        height: 380px;
    }
    
    .polaroid-caption {
        font-size: 18px;
    }
    
    .gallery-container {
        max-width: 900px;
    }
}

/* Estilo para o slide de carregar mais fotos */
.load-more-slide {
    width: 240px !important;
    height: 310px !important;
}

.load-more-card {
    background: linear-gradient(135deg, #e73c7e 0%, #23a6d5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: none !important;
    transition: all 0.3s ease;
}

.load-more-card:hover, .load-more-card:active {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.load-more-content {
    text-align: center;
    color: white;
    padding: 15px;
}

.load-more-content i {
    font-size: 36px;
    margin-bottom: 10px;
}

.load-more-content p {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.load-more-content small {
    font-size: 12px;
    opacity: 0.8;
}

/* Ajustes adicionais para dispositivos móveis */
@media (max-width: 480px) {
    .load-more-slide {
        width: 200px !important;
        height: 260px !important;
    }
    
    .load-more-content i {
        font-size: 28px;
    }
    
    .load-more-content p {
        font-size: 16px;
    }
    
    /* Melhora a experiência do usuário em telas pequenas */
    body {
        padding-bottom: 60px; /* Espaço para o botão de música */
    }
    
    /* Ajusta botão de música para ficar mais visível */
    .music-button {
        border-radius: 30px;
        padding: 8px 12px;
        z-index: 2000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    /* Reduz tamanho do coração clicável */
    .clickable-heart {
        font-size: 35px;
    }
}

/* Ajustes para o Safari no iOS */
@supports (-webkit-touch-callout: none) {
    /* Corrige problemas de altura em iOS */
    html, body {
        height: -webkit-fill-available;
    }
    
    /* Corrige problemas com scrolling suave em iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Previne zoom indesejado em inputs */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Estilos para o botão personalizado de seleção de arquivo */
.custom-file-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.custom-file-button {
    background-color: #e73c7e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
}

.custom-file-button:hover {
    background-color: #d3226b;
    transform: translateY(-2px);
}

.custom-file-button i {
    margin-right: 8px;
}

#fileNameDisplay {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Estilos para as mensagens de amor flutuantes */
.love-message {
    position: fixed;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
    animation: float-message 3s ease-out forwards;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.love-text {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: bold;
    color: #e73c7e;
    white-space: nowrap;
}

.love-language {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 10px;
}

@keyframes float-message {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.8);
    }
}

#captionInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-size: 16px;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    transition: all 0.3s;
}

#captionInput:focus {
    border-color: #e73c7e;
    outline: none;
    box-shadow: 0 0 5px rgba(231, 60, 126, 0.3);
}

#captionInput::placeholder {
    color: #999;
    font-style: italic;
}

/* Melhorias de responsividade para mobile */
@media (max-width: 768px) {
    /* Ajustes gerais para layout */
    body {
        padding: 10px;
    }
    
    /* Título principal */
    .main-title h1 {
        font-size: 2.2em;
    }
    
    .heart-left, .heart-right {
        font-size: 1.5em;
        margin: 0 10px;
    }
    
    /* Contador */
    .counter-container {
        gap: 8px;
    }
    
    .counter-item {
        min-width: 65px;
        padding: 8px;
    }
    
    .counter-item span {
        font-size: 1.8em;
    }
    
    .counter-item label {
        font-size: 0.8em;
    }
    
    /* Carrossel */
    .gallery-container {
        padding: 10px 0;
    }
    
    .polaroid-swiper {
        padding: 30px 0;
    }
    
    .swiper-slide {
        width: 260px;
        height: 330px;
    }
    
    .polaroid-caption {
        font-size: 16px;
    }
    
    .polaroid-date {
        font-size: 12px;
    }
    
    .memory-tag {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    /* Formulário de upload */
    .upload-form {
        padding: 15px;
    }
    
    .upload-label {
        font-size: 16px;
    }
    
    #photoInput, #captionInput {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Coração clicável */
    .clickable-heart {
        font-size: 40px;
    }
    
    /* Mensagens de amor */
    .love-text {
        font-size: 22px;
    }
    
    .love-language {
        font-size: 12px;
    }
    
    /* Botão de música */
    .music-button {
        font-size: 0.9em;
        padding: 8px 15px;
        bottom: 10px;
        right: 10px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    /* Título principal */
    .main-title h1 {
        font-size: 1.8em;
    }
    
    /* Contador */
    .counter-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Estilo para a mensagem especial após 10 cliques */
.special-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.special-message-content {
    background: linear-gradient(135deg, #fff1f6 0%, #fff 100%);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(231, 60, 126, 0.3), 0 0 50px rgba(255, 255, 255, 0.2);
    padding: 30px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 3px solid rgba(231, 60, 126, 0.7);
}

.special-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(231, 60, 126, 0.3);
    padding-bottom: 15px;
}

.special-message-header h2 {
    color: #e73c7e;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.special-message-close {
    font-size: 32px;
    color: #e73c7e;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.special-message-close:hover {
    background-color: rgba(231, 60, 126, 0.1);
    transform: scale(1.1);
}

.special-message-body {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    padding: 10px;
}

.special-message-body p {
    margin-bottom: 20px;
}

.special-message-body p:last-child {
    font-weight: bold;
    color: #e73c7e;
    font-size: 28px;
}

/* Coração especial flutuante */
.special-floating-heart {
    position: absolute;
    animation: special-float 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 9998;
}

@keyframes special-float {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade para a mensagem especial */
@media (max-width: 768px) {
    .special-message-content {
        width: 95%;
        padding: 20px;
    }
    
    .special-message-header h2 {
        font-size: 2em;
    }
    
    .special-message-body {
        font-size: 20px;
    }
    
    .special-message-body p:last-child {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .special-message-content {
        padding: 15px;
    }
    
    .special-message-header h2 {
        font-size: 1.8em;
    }
    
    .special-message-body {
        font-size: 18px;
    }
    
    .special-message-body p:last-child {
        font-size: 22px;
    }
} 