/*
Theme Name: App Hub
Theme URI: https://coudex.com
Author: Isael
Author URI: https://coudex.com
Description: A modern, responsive WordPress theme for showcasing mobile apps from Google Play Store and Apple App Store.
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appcoudex
Tags: responsive, mobile, app, showcase, modern, clean
*/

/* @import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css'); */

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafc;
  color: #222;
  margin: 0;
}

/* Add more custom styles below or in separate files */


/*css do single-apps.php*/
/* Estilos personalizados para a página de app */
.app-icon-lg {
    max-width: 180px;
    height: auto;
}

.app-info-card {
    position: sticky;
    top: 20px;
}

.app-metadata {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
}

.screenshot-gallery img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.screenshot-gallery img:hover {
    transform: scale(1.03);
}

.rating-badge, .price-badge {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-content {
    line-height: 1.8;
}

/* estilo do header menu */
/* Estilo geral para todos os links do menu */
#menu-header a {
    color: #333333 ; /* Cor do texto */
    font-weight: 500; /* Peso da fonte */
    padding: 8px 15px; /* Espaçamento interno */
    transition: color 0.3s ease; /* Transição suave da cor */
    text-decoration: none
}

/* Efeito ao passar o mouse sobre o link (hover) */
.navbar-nav .menu-item a:hover {
    color: #007bff; /* Cor do texto ao passar o mouse */
    text-decoration: none; /* Remove o sublinhado, se houver */
}

/* Estilo para o item do menu da página ATUAL */
.navbar-nav .current-menu-item a {
    color: #0056b3; /* Cor mais forte para o item ativo */
    font-weight: 700; /* Deixa a fonte em negrito */
}


/*estilo para o menu do footer*/
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

 #menu-footer a {
    color: #ffffff; /* Cor do texto */
    font-weight: 500; /* Peso da fonte */
    
    transition: color 0.3s ease; /* Transição suave da cor */
    text-decoration: none;
}

/* Estilo para a paginação do WordPress */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e3e6ea;
    transition: background 0.2s, color 0.2s;
}

.page-numbers:hover,
.page-numbers:focus {
    background: #e3f2fd;
    color: #1565c0;
    text-decoration: none;
}

.page-numbers.current {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
    font-weight: 700;
    cursor: default;
}

/* Estilo para o conteúdo do app (descrição, posts, etc.) */
.app-description-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #374151; /* text-gray-700 */
    word-break: break-word;
}

/* --- Títulos --- */
.app-description-content h1,
.app-description-content h2,
.app-description-content h3,
.app-description-content h4,
.app-description-content h5,
.app-description-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    line-height: 1.3;
}
.app-description-content h1 { font-size: 2rem; }
.app-description-content h2 { font-size: 1.5rem; }
.app-description-content h3 { font-size: 1.25rem; }
.app-description-content h4 { font-size: 1.1rem; }

/* --- Parágrafos e Listas --- */
.app-description-content p { margin-bottom: 1.2em; }
.app-description-content ul,
.app-description-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    padding-left: 1em;
}
.app-description-content ul { list-style-type: disc; }
.app-description-content ol { list-style-type: decimal; }
.app-description-content li { margin-bottom: 0.5em; }

/* --- Links --- */
.app-description-content a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.app-description-content a:hover { color: #3730a3; /* indigo-800 */ }

/* Link externo (com ícone) */
.app-description-content a[target="_blank"]::after {
    content: '↗';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: bold;
}

/* --- Citações (Blockquote) --- */
.app-description-content blockquote {
    border-left: 4px solid #4f46e5; /* indigo-600 */
    background: #eef2ff; /* indigo-50 */
    padding: 1em 1.5em;
    margin: 1.5em 0;
    color: #3730a3; /* indigo-800 */
    font-style: italic;
}
.app-description-content blockquote p { margin-bottom: 0; }

/* --- Código --- */
/* Bloco de código */
.app-description-content pre {
    background: #1e293b; /* text-gray-800 */
    color: #e2e8f0; /* text-gray-300 */
    padding: 1.5em;
    border-radius: 0.5rem;
    margin: 1.5em 0;
    overflow-x: auto; /* Scroll horizontal */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}
.app-description-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
/* Código inline */
.app-description-content code {
    background: #eef2ff; /* indigo-50 */
    color: #4f46e5; /* indigo-600 */
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Tabelas --- */
.app-description-content .table-wrapper {
    overflow-x: auto; /* Ativa o scroll horizontal em telas pequenas */
    margin: 1.5em 0;
}
.app-description-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98em;
    min-width: 600px; /* Força o scroll em telas menores */
}
.app-description-content th,
.app-description-content td {
    border: 1px solid #e5e7eb;
    padding: 0.8em 1em;
    text-align: left;
}
.app-description-content th {
    background: #f9fafb; /* gray-50 */
    font-weight: 600;
    color: #111827; /* gray-900 */
}
.app-description-content tr:nth-child(even) {
    background: #f9fafb; /* gray-50 */
}

/* --- Botões --- */
.app-description-content .btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background-color: #4f46e5; /* indigo-600 */
    padding: 0.75em 1.5em;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    margin: 0.5em 0;
}
.app-description-content .btn:hover {
    background-color: #4338ca; /* indigo-700 */
    color: #fff;
}

.app-description-content button,
.app-description-content input[type="submit"],
.app-description-content input[type="button"],
.app-description-content input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #4338ca;
    background-color: #4f46e5;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-description-content button:hover,
.app-description-content input[type="submit"]:hover,
.app-description-content input[type="button"]:hover,
.app-description-content input[type="reset"]:hover {
    background-color: #3730a3;
    border-color: #312e81;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.app-description-content button:disabled,
.app-description-content input[type="submit"]:disabled,
.app-description-content input[type="button"]:disabled,
.app-description-content input[type="reset"]:disabled {
    background-color: #cbd5f5;
    border-color: #94a3d8;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Outros Elementos --- */
.app-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.app-description-content hr {
    border: 0;
    height: 1px;
    background: #e5e7eb; /* gray-200 */
    margin: 2em 0;
}
.app-description-content input[type="text"],
.app-description-content input[type="email"],
.app-description-content input[type="number"],
.app-description-content input[type="password"],
.app-description-content input[type="search"],
.app-description-content input[type="tel"],
.app-description-content input[type="url"],
.app-description-content textarea,
.app-description-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #1e293b;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-description-content input:focus,
.app-description-content textarea:focus,
.app-description-content select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.app-description-content input[disabled],
.app-description-content textarea[disabled],
.app-description-content select[disabled] {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: #94a3b8;
}

 /* Reset de lista */
        .main-menu,
        .main-menu ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* Links do menu */
        .main-menu a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            color: #374151;
            font-weight: 500;
            text-decoration: none;
            border-radius: 0.5rem;
            transition: all 0.2s ease;
        }

        .main-menu a:hover {
            background: #eff6ff;
            color: #2563eb;
        }

        /* OCULTAR ELEMENTOS MOBILE NO DESKTOP */
        @media (min-width: 1024px) {

            #menu-toggle,
            #search-toggle-mobile,
            #mainNav {
                display: none !important;
            }

            .desktop-nav {
                display: flex !important;
            }
        }

        /* OCULTAR ELEMENTOS DESKTOP NO MOBILE */
        @media (max-width: 1023px) {
            .desktop-nav {
                display: none !important;
            }

            #menu-toggle,
            #search-toggle-mobile {
                display: flex !important;
            }

            .site-branding {
                position: absolute;
                inset: 0;
                justify-content: center;
                transform: translateX(0);
                pointer-events: none;
            }

            .site-branding a {
                pointer-events: auto;
            }

            #menu-toggle {
                z-index: 2;
            }

            #search-toggle-mobile {
                z-index: 2;
            }

            .hamburger {
                width: 2.25rem;
                height: 2.25rem;
            }

            .hamburger span {
                height: 3px;
            }
        }

        /* Mobile Styles */
        @media (max-width: 1023px) {
            #mainNav {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }

            #mainNav.open {
                max-height: calc(100vh - 4rem);
                overflow-y: auto;
            }

            .main-menu {
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                padding: 1rem;
            }

            .main-menu>li {
                background: #f9fafb;
                border-radius: 0.5rem;
                overflow: hidden;
            }

            .main-menu>li>a {
                justify-content: space-between;
            }

            /* Submenu Mobile */
            .main-menu .sub-menu {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                padding-left: 1.5rem;
                margin: 0;
            }

            .main-menu li.submenu-open>.sub-menu {
                max-height: 500px;
                padding-bottom: 0.5rem;
            }

            .main-menu .sub-menu li {
                margin-top: 0.25rem;
            }

            .main-menu .sub-menu a {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            /* Botão Toggle Submenu */
            .submenu-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 2rem;
                height: 2rem;
                border: none;
                background: transparent;
                color: #6b7280;
                cursor: pointer;
                transition: transform 0.3s ease;
            }

            .submenu-toggle svg {
                width: 1.25rem;
                height: 1.25rem;
                transition: transform 0.3s ease;
            }

            .submenu-open>a>.submenu-toggle svg {
                transform: rotate(180deg);
            }
        }

        /* Desktop Styles */
        @media (min-width: 1024px) {
            .main-menu {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
            }

            .main-menu>li {
                position: relative;
            }

            .site-branding {
                position: static;
            }
            
            /* Submenu Desktop */
            .main-menu .sub-menu {
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 14rem;
                padding: 0.5rem;
                margin-top: 0.5rem;
                background: white;
                border: 1px solid #e5e7eb;
                border-radius: 0.75rem;
                box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: all 0.2s ease;
                z-index: 1000;
            }

            .main-menu li:hover>.sub-menu,
            .main-menu li:focus-within>.sub-menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .submenu-toggle {
                display: inline-flex;
                align-items: center;
                margin-left: 0.25rem;
            }

            .submenu-toggle svg {
                width: 1rem;
                height: 1rem;
            }
        }

        /* Search Form */
        #search-form-container {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        #search-form-container.open {
            max-height: 200px;
            border-top: 1px solid #e5e7eb;
        }

        /* Header layout */
.header-bar {
    position: relative;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #374151;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1023px) {
    .desktop-nav {
        display: none !important;
    }
    #menu-toggle,
    #search-toggle-mobile {
        display: flex !important;
        z-index: 2;
    }
    #mainNav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    #mainNav.open {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    .site-branding {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    .site-branding a {
        pointer-events: auto;
    }
}

@media (min-width: 1024px) {
    #menu-toggle,
    #search-toggle-mobile,
    #mainNav {
        display: none !important;
    }
    .desktop-nav {
        display: flex !important;
    }
    .site-branding {
        position: static;
        display: flex;
        align-items: center;
    }
}