/**
 * Applet Theme - Custom CSS
 * Variáveis, animações e estilos personalizados
 */

:root {
    --color-black: #000000;
    --color-dark: #242424;
    --color-light: #F2F2F2;
    --color-yellow: #FCDD45;
    --color-white: #FFFFFF;
    
    --font-urbanist: 'Urbanist', sans-serif;
}

* {
    font-family: var(--font-urbanist);
}

body {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.floating-shape-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-shape-2 {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shape-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-dark);
}

/* Typewriter Cursor */
.typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--color-light);
    border-top: 3px solid var(--color-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
}

.gradient-bg-dark {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
}

a:focus {
    outline: none;
}

/* Selection Color */
::selection {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

::-moz-selection {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

/* Prose Styles para Single Service */
.prose {
    color: #2C2C2C;
    line-height: 1.75;
}

.prose h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #000000;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.625rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
    color: #000000;
}

.prose a {
    color: #FCDD45;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: #242424;
}

.prose blockquote {
    border-left: 4px solid #FCDD45;
    padding-left: 1.5rem;
    font-style: italic;
    color: #242424;
    margin: 1.5rem 0;
}

.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
}

.prose code {
    background: #F2F2F2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: #242424;
    color: #F2F2F2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Badge Icon Styles */
.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.badge-icon-light {
    color: #ffffff;
}

.badge-icon-dark {
    color: #242424;
}

/* Paginação */
.pagination-item .page-numbers {
    background-color: white;
    color: #242424;
    border: 1px solid #e5e7eb;
}

.pagination-item .page-numbers:hover {
    background-color: #FCDD45;
    color: #242424;
    border-color: #FCDD45;
}

.pagination-item .page-numbers.current {
    background-color: #FCDD45;
    color: #242424;
    border-color: #FCDD45;
}

.pagination-item .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination-item .page-numbers.dots:hover {
    background: transparent;
}

/* Client Card Hover */
.group:hover .client-card-decoration {
    transform: translate(8px, -8px) scale(1.5);
}

/* Carrossel contínuo suave */
.partners-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Logos com grayscale parcial */
.client-logo-hover {
    filter: grayscale(60%);
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.group:hover .client-logo-hover {
    filter: grayscale(0%);
}

/* Variante para página interna (grayscale mais suave) */
.client-logo-hover-light {
    filter: grayscale(50%);
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.group:hover .client-logo-hover-light {
    filter: grayscale(0%);
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search Form */
.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Comment Form Fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        display: inline-block;
        width: calc(50% - 0.75rem);
    }
    
    .comment-form .comment-form-author {
        margin-right: 1.5rem;
    }
}

/* Prose customization */
.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose blockquote {
    font-style: italic;
    border-left-width: 4px;
}

/* Logos com drop-shadow para visibilidade em fundo escuro */
.client-logo-white {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)) drop-shadow(0 0 1px rgba(255,255,255,0.7));
    opacity: 0.8;
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.group:hover .client-logo-white {
    filter: drop-shadow(0 0 0 transparent);
    opacity: 1;
}
