/**
 * Project Manager V2 - Novo Design System
 * Cores modernas, gradientes, sombras e animações
 */

/* ==================== Hero Header ==================== */
.projects-hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.projects-hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== Buttons ==================== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #667eea;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-gradient-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ==================== Stats Grid ==================== */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-v2 {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card-v2.stat-primary::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-card-v2.stat-success::before { background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%); }
.stat-card-v2.stat-info::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-card-v2.stat-warning::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-card-v2.stat-danger::before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.stat-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-card-v2.stat-primary .stat-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.stat-card-v2.stat-success .stat-icon { background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%); color: white; }
.stat-card-v2.stat-info .stat-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.stat-card-v2.stat-warning .stat-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.stat-card-v2.stat-danger .stat-icon { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: white; }

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

/* ==================== Toolbar ==================== */
.toolbar-v2 {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.toolbar-start, .toolbar-end {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-v2 {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-v2 i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.search-v2 .form-control {
    padding: 0.875rem 3rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-v2 .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #718096;
}

.btn-clear:hover {
    background: #cbd5e0;
    color: #1a202c;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.view-toggle {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.btn-view {
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    color: #4a5568;
}

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

.btn-view:hover:not(.active) {
    background: #f7fafc;
}

/* ==================== Projects Grid ==================== */
.projects-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.projects-grid-v2.view-list {
    grid-template-columns: 1fr;
}

/* ==================== Project Card V2 ==================== */
.project-card-v2 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card-v2.pinned {
    border: 2px solid #f5576c;
}

.project-card-v2.active {
    border: 2px solid #667eea;
}

.project-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.project-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.project-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.project-card-content {
    flex-grow: 1;
    min-width: 0;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.project-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.project-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.project-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-card-action {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: #4a5568;
}

.btn-card-action:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.btn-card-action-full {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-card-action-full:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Dropdown Modern */
.dropdown-menu-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-menu-modern .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-menu-modern .dropdown-item:hover {
    background: #f7fafc;
    color: #667eea;
}

/* ==================== Archived Section ==================== */
.archived-section {
    margin-top: 3rem;
}

.btn-toggle-archived {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #4a5568;
}

.btn-toggle-archived:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #a0aec0;
}

/* ==================== Empty State ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: #718096;
    margin: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .projects-hero-header {
        padding: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbar-v2 {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-start, .toolbar-end {
        width: 100%;
        justify-content: space-between;
    }

    .search-v2 {
        min-width: 100%;
        flex: none;
    }

    .filter-buttons {
        overflow-x: auto;
        width: 100%;
    }

    .projects-grid-v2 {
        grid-template-columns: 1fr;
    }
}

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

.project-card-v2 {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-card-v2:hover .stat-icon {
    animation: pulse 0.6s ease-in-out;
}
