/* =========================================
   ESTILOS GLOBAIS - Prompt Generator
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #4285f4;
    --color-secondary: #f8f9fa;
    --color-danger: #ea4335;
    --color-success: #34a853;
    --color-text: #202124;
    --color-text-light: #5f6368;
    --color-border: #dadce0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =========================================
   HEADER
   ========================================= */

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem var(--spacing-md);
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px var(--color-shadow);
    text-align: center;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* =========================================
   INFO SECTION
   ========================================= */

.info-section {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--color-shadow);
}

.info-text {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.info-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* =========================================
   CARDS SECTION
   ========================================= */

.cards-section {
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Card Component */
.llm-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--color-shadow);
    padding: var(--spacing-lg);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.llm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--color-shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-secondary);
}

.llm-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--color-secondary);
    padding: 8px;
}

.card-header-text h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.llm-company {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.card-body {
    flex: 1;
    margin-bottom: var(--spacing-lg);
}

.llm-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.card-stats {
    display: grid;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
}

.stat {
    padding: var(--spacing-xs);
    background: var(--color-secondary);
    border-radius: 6px;
    color: var(--color-text);
}

.stat strong {
    color: var(--color-text);
    font-weight: 600;
}

.card-footer {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.card-footer .btn {
    flex: 1;
    min-width: 140px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #e8eaed;
}

/* =========================================
   FOOTER
   ========================================= */

.app-footer {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--color-shadow);
    margin-top: 2rem;
}

.app-footer p {
    margin-bottom: var(--spacing-sm);
}

.app-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.app-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .app-title {
        font-size: 1.8rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-footer {
        flex-direction: column;
    }

    .card-footer .btn {
        width: 100%;
    }

    .app-header {
        padding: 2rem var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.5rem;
    }

    .app-header {
        padding: 1.5rem var(--spacing-md);
        margin-bottom: 1.5rem;
    }

    .llm-card {
        padding: var(--spacing-md);
    }

    .card-header {
        gap: var(--spacing-sm);
    }

    .llm-logo {
        width: 40px;
        height: 40px;
    }

    .card-header-text h3 {
        font-size: 1.1rem;
    }
}
