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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.logo h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo h1 a:hover {
    opacity: 0.9;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin-left: 2rem;
}

.search-box form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #45a049;
}

/* Navigation */
.navigation {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-section h2 i {
    color: #ffd700;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.software-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.software-card.featured {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.software-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.software-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.software-card h3 a:hover {
    color: #667eea;
}

.software-card .description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meta span {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: #666;
}

.meta .category {
    background: #e3f2fd;
    color: #1976d2;
}

.meta .version {
    background: #f3e5f5;
    color: #7b1fa2;
}

.meta .downloads {
    background: #e8f5e8;
    color: #388e3c;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-download {
    background: #4CAF50;
    color: white;
}

.btn-download:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-info {
    background: #2196F3;
    color: white;
}

.btn-info:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn.active {
    background: #667eea;
    color: white;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 44px;
    justify-content: center;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

/* Software Details Page */
.software-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.software-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.software-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #666;
}

.download-section {
    text-align: center;
}

.download-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.download-info span {
    display: block;
    margin: 0.25rem 0;
}

.software-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-content section {
    margin-bottom: 2rem;
}

.main-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description,
.requirements {
    line-height: 1.7;
    color: #555;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box,
.download-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.info-box h3,
.download-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: #333;
}

.download-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Download Page */
.download-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.download-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.download-header {
    margin-bottom: 2rem;
}

.download-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.download-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.download-header h2 {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: normal;
}

.software-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.download-status {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 1s ease;
}

.status-text {
    font-size: 1.1rem;
    color: #666;
}

.download-actions {
    margin-bottom: 2rem;
}

.download-actions .btn {
    margin: 0.5rem;
}

.download-notes {
    text-align: left;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.note i {
    color: #4CAF50;
    margin-top: 0.1rem;
}

/* Download Sidebar */
.download-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item h4 {
    margin-bottom: 0.5rem;
}

.sidebar-item h4 a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.sidebar-item h4 a:hover {
    color: #667eea;
}

.sidebar-item p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.sidebar-meta {
    font-size: 0.8rem;
    color: #999;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 8px;
    color: #856404;
}

.warning-box p {
    margin-bottom: 0.5rem;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* Related Section */
.related-section {
    margin-top: 3rem;
}

.related-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-box {
        margin-left: 0;
        max-width: 100%;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .software-header {
        flex-direction: column;
        text-align: center;
    }
    
    .software-title h1 {
        font-size: 2rem;
    }
    
    .software-content {
        grid-template-columns: 1fr;
    }
    
    .download-page {
        grid-template-columns: 1fr;
    }
    
    .actions {
        justify-content: center;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .software-card {
        padding: 1rem;
    }
    
    .software-details {
        padding: 1rem;
    }
    
    .download-container {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
.btn:focus,
input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .navigation,
    .footer,
    .download-actions,
    .actions {
        display: none;
    }
    
    .software-details {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

