/* Elementos decorativos para o site Ovos da Campina */

/* Ondas decorativas para separação de seções */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: -1px 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider.primary .shape-fill {
    fill: var(--primary-color);
}

.wave-divider.secondary .shape-fill {
    fill: var(--secondary-color);
}

.wave-divider.accent .shape-fill {
    fill: var(--accent-color);
}

.wave-divider.dark .shape-fill {
    fill: var(--dark-brown);
}

.wave-divider.light .shape-fill {
    fill: #fff;
}

/* Elementos flutuantes */
.floating-element {
    position: absolute;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.floating-element.egg-small {
    width: 50px;
    height: 70px;
    background-color: var(--secondary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(30deg);
}

.floating-element.egg-medium {
    width: 70px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-15deg);
    opacity: 0.8;
}

.floating-element.chicken-silhouette {
    width: 80px;
    height: 80px;
    background-image: url('../images/elementos_decorativos/chicken-silhouette.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.floating-element.top-left {
    top: 10%;
    left: 5%;
}

.floating-element.top-right {
    top: 15%;
    right: 8%;
}

.floating-element.bottom-left {
    bottom: 12%;
    left: 7%;
}

.floating-element.bottom-right {
    bottom: 15%;
    right: 5%;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Decorações de cantos */
.corner-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 1;
    opacity: 0.7;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    background-image: url('../images/elementos_decorativos/corner-tl.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.corner-decoration.top-right {
    top: 0;
    right: 0;
    background-image: url('../images/elementos_decorativos/corner-tr.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    background-image: url('../images/elementos_decorativos/corner-bl.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    background-image: url('../images/elementos_decorativos/corner-br.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Efeitos de hover para cards e elementos interativos */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(217, 147, 61, 0.5);
}

/* Fundos texturizados */
.textured-bg {
    position: relative;
}

.textured-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/elementos_decorativos/texture.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.textured-bg.light::before {
    opacity: 0.03;
}

.textured-bg.dark::before {
    opacity: 0.08;
}

/* Bordas decorativas */
.decorative-border {
    position: relative;
    padding: 30px;
}

.decorative-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    z-index: 0;
}

.decorative-border::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    z-index: 0;
}

.decorative-border > * {
    position: relative;
    z-index: 1;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .wave-divider svg {
        height: 40px;
    }
    
    .floating-element {
        display: none;
    }
    
    .corner-decoration {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .wave-divider svg {
        height: 30px;
    }
    
    .corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .decorative-border {
        padding: 20px;
    }
    
    .decorative-border::after {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }
}
