/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff41;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    border-bottom: 1px solid var(--matrix-border);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--matrix-green));
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: right;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    color: #00cc33;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--matrix-green);
    text-shadow: 0 0 5px currentColor;
}

.stat-value.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hero Section */
.hero {
    font-size: 1.3rem;
    padding: 15px;
    background: rgba(0, 20, 0, 0.2);
    border: 1px solid var(--matrix-border);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
    user-select: none;
}

.hero:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px var(--matrix-glow);
    transform: translateY(-2px);
}

.terminal-line {
    font-size: 0.9rem;
    color: #00cc33;
    padding: 5px 15px;
    background: rgba(0, 30, 0, 0.1);
    border-left: 2px solid var(--matrix-green);
}

.command {
    color: var(--matrix-green);
    font-weight: bold;
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--matrix-border);
}

.section-icon {
    color: var(--matrix-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.section-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-count {
    margin-left: auto;
    font-size: 0.9rem;
    color: #00cc33;
    padding: 3px 8px;
    border: 1px solid var(--matrix-border);
    border-radius: 2px;
}

/* Grid de Projetos */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--matrix-card);
    border: 1px solid var(--matrix-border);
    border-radius: 5px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 20px var(--matrix-glow);
    transform: translateY(-5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--matrix-green);
    transition: left 0.3s;
}

.card:hover::before {
    left: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--matrix-green);
}

.card-arrow {
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--matrix-green);
    font-weight: bold;
}

.card:hover .card-arrow {
    opacity: 1;
}

.card-desc {
    font-size: 0.9rem;
    color: #00cc33;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--matrix-border);
    color: #00cc33;
    padding: 3px 8px;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: all 0.3s;
}

.card:hover .tag {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--matrix-green);
}

/* Logs */
.logs {
    background: rgba(0, 20, 0, 0.1);
    border: 1px solid var(--matrix-border);
    border-radius: 5px;
    overflow: hidden;
}

.log {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 59, 0, 0.5);
    transition: background 0.3s;
}

.log:last-child {
    border-bottom: none;
}

.log:hover {
    background: rgba(0, 255, 65, 0.05);
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.log-date {
    color: var(--matrix-green);
    font-weight: bold;
}

.log-time {
    color: #00cc33;
    opacity: 0.7;
}

.log-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.log-prompt {
    color: var(--matrix-green);
    font-weight: bold;
    flex-shrink: 0;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--matrix-border);
    text-align: center;
}

.footer-line {
    margin-bottom: 20px;
    color: var(--matrix-border);
}

.footer-info {
    font-size: 0.9rem;
}

.info-label {
    color: #00cc33;
}

.info-value {
    color: var(--matrix-green);
    font-weight: bold;
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
    color: #00cc33;
}

/* Console */
.console {
    position: fixed;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--matrix-green);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    z-index: 1000;
    transition: bottom 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(5px);
}

.console.active {
    bottom: 0;
}

.console-header {
    background: rgba(0, 255, 65, 0.1);
    padding: 12px 15px;
    border-bottom: 1px solid var(--matrix-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    font-weight: bold;
    color: var(--matrix-green);
    letter-spacing: 1px;
}

.console-close {
    cursor: pointer;
    color: var(--matrix-green);
    font-weight: bold;
    padding: 0 5px;
    transition: all 0.3s;
}

.console-close:hover {
    color: #fff;
    background: var(--matrix-green);
}

.console-form {
    padding: 20px;
    display: flex;
    align-items: center;
}

.console-prompt {
    color: var(--matrix-green);
    font-weight: bold;
    margin-right: 10px;
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--matrix-border);
    color: var(--matrix-green);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    padding: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.console-input:focus {
    border-color: var(--matrix-green);
}

.console-input::placeholder {
    color: #00cc33;
    opacity: 0.5;
}

/* Admin Panel */
.admin {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--matrix-green);
    border-radius: 3px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.admin-badge {
    background: var(--matrix-green);
    color: #000;
    font-weight: bold;
    padding: 3px 8px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-align: center;
    border-radius: 2px;
}

.admin-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-link {
    color: var(--matrix-green);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 3px 8px;
    border: 1px solid var(--matrix-border);
    border-radius: 2px;
    transition: all 0.3s;
    text-align: center;
}

.admin-link:hover {
    background: var(--matrix-green);
    color: #000;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats {
        width: 100%;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .console {
        width: 95%;
    }
    
    .admin {
        position: static;
        margin: 20px auto;
        width: fit-content;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 20, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--matrix-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-green);
}