/*
Theme Name: Cyfer Plugins
Description: Tema moderno e responsivo para venda de plugins da Cyfer Development
Version: 1.0.1
Author: Cyfer Development
Author URI: https://www.cyfer.com.br
*/

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 40px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.site-logo i {
    font-size: 2rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-logo img {
    height: 45px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: #667eea;
    opacity: 0.8;
}

.site-logo:hover {
    transform: translateY(-1px);
}

.site-logo:hover .logo-title {
    color: #667eea;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Estado do menu aberto */
body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header {
    background: rgba(255, 255, 255, 0.98);
}

/* Estilos para filtros */
.plugins-filters select {
    transition: all 0.3s ease;
}

.plugins-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.clear-filters:hover {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

.results-count {
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

/* Seção de plugins */
.plugins-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.plugin-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    /* height: 500px; */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.plugin-icon {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.plugin-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
}

.plugin-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.plugin-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.plugin-features-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.plugin-features-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.plugin-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.plugin-features li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #555;
    position: relative;
    padding-left: 3rem;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.plugin-features li:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
    position: absolute;
    left: 1rem;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

.plugin-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
}

.buy-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
    }
    
    .header-left {
        flex: 1;
    }
    
    .site-logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .site-logo img {
        height: 35px;
    }
    
    .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .site-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-card {
        height: auto;
        min-height: 450px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plugin-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Estilos para EDD */
.edd_download_purchase_form {
    margin: 0;
}

.edd_purchase_submit_wrapper {
    margin: 0;
}

.edd-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.edd-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102,126,234,0.4) !important;
}

/* Estilos para preços */
.edd_price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #667eea !important;
    margin-bottom: 1rem !important;
}

/* Estilos para descrições */
.edd_download_excerpt {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* Estilos para página individual do produto */
.plugin-single {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.plugin-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.plugin-header .plugin-icon {
    /* width: 150px; */
    /* height: 150px; */
    margin: 0 auto 2rem;
    border-radius: 25px;
    font-size: 4rem;
}

.plugin-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.plugin-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.plugin-description h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Estilos específicos para descrição na página individual do plugin */
.plugin-single .plugin-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.plugin-single .plugin-description p {
    margin-bottom: 1rem;
}

.plugin-single .plugin-description p:last-child {
    margin-bottom: 0;
}

.plugin-single .description-content {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.plugin-single .description-content p {
    margin-bottom: 1.5rem;
}

.plugin-single .description-content p:last-child {
    margin-bottom: 0;
}

.plugin-single .description-content h1,
.plugin-single .description-content h2,
.plugin-single .description-content h3,
.plugin-single .description-content h4,
.plugin-single .description-content h5,
.plugin-single .description-content h6 {
    color: #333;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.plugin-single .description-content ul,
.plugin-single .description-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.plugin-single .description-content li {
    margin-bottom: 0.5rem;
}

/* Estilos para plugins relacionados */
.related-plugins {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.related-plugins h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.related-plugins .plugins-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* .related-plugins .plugin-card {
    height: 400px;
    display: flex;
    flex-direction: column;
} */

.related-plugins .plugin-icon {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.related-plugins .plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.related-plugins .plugin-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
}



.plugin-sidebar .plugin-card {
    position: sticky;
    top: 120px;
    height: auto;
    min-height: 400px;
}

.plugin-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.plugin-info div {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.plugin-info div:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.plugin-screenshots {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.plugin-screenshots h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsividade para página do produto */
@media (max-width: 768px) {
    .plugin-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plugin-main-content {
        gap: 1.5rem;
    }
    
    .plugin-single {
        padding: 2rem;
        margin: 1rem;
    }
    
    .plugin-header .plugin-icon {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .plugin-features {
        grid-template-columns: 1fr;
    }
    
    .plugin-single .description-content {
        font-size: 1rem;
    }
    
    .related-plugins .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .related-plugins .plugin-card {
        height: auto;
        min-height: 350px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsividade para filtros */
    .plugins-filters .clear-filters {
        width: 100%;
        margin-top: 1rem;
    }
} 