/* ===== ESTILOS BASE MODERNOS - REUTILIZÁVEIS ===== */

/* Animações CSS Base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Hero Section Base */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Botões Modernos */
.btn-primary {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #A855F7, #8B5CF6);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    padding: 1rem 1.5rem;
    background: rgba(167, 139, 250, 0.1);
    color: #A855F7;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.2);
    transform: translateY(-3px);
    color: #A855F7;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.2);
}

.btn-danger {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    cursor: pointer;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

.btn-success {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    cursor: pointer;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16A34A, #15803D);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

/* Cards Modernos */
.modern-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.modern-card:hover::before {
    left: 100%;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.15);
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-published {
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.3));
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.status-draft {
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.3));
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.status-pending {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.3));
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.status-error {
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.3));
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Formulários Modernos */
.modern-form {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}

.modern-input {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.modern-input:focus {
    outline: none;
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
    background: rgba(167, 139, 250, 0.15);
}

.modern-input::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

.modern-select {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.modern-select:focus {
    outline: none;
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.modern-select option {
    background: #1f2937;
    color: white;
}

/* Grid Responsivo */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
    border-radius: 25px;
    border: 2px dashed rgba(167, 139, 250, 0.3);
    animation: fadeInUp 1s ease-out;
}

.empty-icon {
    font-size: 5rem;
    background: linear-gradient(45deg, #A855F7, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Botão Flutuante */
.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #A855F7, #8B5CF6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: fadeInUp 1s ease-out 1.2s both;
    cursor: pointer;
}

.floating-action:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(167, 139, 250, 0.5);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4B5563 50%, #374151 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Responsividade Base */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .modern-card {
        margin: 0;
    }

    .floating-action {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .btn-primary, .btn-secondary, .btn-danger, .btn-success {
        width: 100%;
        justify-content: center;
    }
} 