/* Reset e Variáveis */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #16a085;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.admin-link {
    background: var(--primary-color);
    color: white;
}

.admin-link:hover {
    background: #2980b9;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 15px 20px 15px 55px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: var(--transition);
}

#searchInput:focus {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Main Content */
.main {
    padding: 60px 0;
}

.category-section {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
}

.category-header i {
    font-size: 2rem;
}

.category-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.app-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Aplicação em desenvolvimento */
.app-card-dev {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.85;
}

.app-card-dev:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: #f39c12;
}

.dev-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    z-index: 2;
}

.dev-badge i {
    font-size: 0.85rem;
}

.app-lock {
    color: #f39c12;
    font-size: 1.5rem;
    opacity: 0.7;
}

.app-card-dev .app-title {
    color: #7f8c8d;
}

.app-card-dev .app-description {
    color: #95a5a6;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.app-card:hover::before {
    transform: scaleY(1);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon i {
    font-size: 1.8rem;
}

.app-content {
    flex: 1;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.app-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.app-arrow {
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.app-card:hover .app-arrow {
    opacity: 1;
    transform: translateX(0);
}

.no-apps {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    background: white;
    border-radius: 12px;
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    
    .app-arrow {
        display: none;
    }
}
