/* Variáveis Globais */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 1rem;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeIn 1s ease-out;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideUp 0.8s ease-out forwards;
}

/* Author Section */
.author {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.author-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.author-name {
    color: var(--primary);
    font-weight: 600;
}

.author-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Mentorship Section */
.mentorship-section {
    margin: 6rem 0;
    padding: 2rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mentorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.mentorship-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease-out forwards;
}

.mentorship-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mentorship-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    padding: 8px;
    background: #eef2ff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mentorship-card:hover .mentorship-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.mentorship-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}

.mentorship-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.mentorship-features {
    list-style: none;
    margin: 1rem 0;
}

.mentorship-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.mentorship-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.mentorship-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.mentorship-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Tools Section */
.tools-section {
    margin: 6rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.category {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out forwards;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.tool-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-item:hover {
    transform: translateX(5px);
    background: var(--hover-bg);
}

.icon-wrapper {
    background: #eef2ff;
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-item:hover .icon-wrapper {
    background: var(--primary);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tool-item:hover .icon {
    color: white;
}

.tool-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.tool-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.tool-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.tool-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container { padding: 1rem; }
    .grid { gap: 1.5rem; }
    .mentorship-grid { gap: 1.5rem; }
}

@media (max-width: 768px) {
    body { padding: 1rem 0.5rem; }
    header { padding: 2rem 1rem; margin-bottom: 2rem; }
    .category { padding: 1.5rem; }
    .tool-item { padding: 1rem; }
    .mentorship-card { padding: 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .tool-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .icon-wrapper { margin-bottom: 0.5rem; }
    .tool-name { font-size: 1rem; }
    .mentorship-button { padding: 0.8rem 1.5rem; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --card-bg: #1e293b;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-color: #334155;
        --hover-bg: #334155;
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}