/**
 * FGTS Calculator Styles
 */

/* Root Variables */
.fgts-calculator-wrapper {
    --primary-color: #17a2b8;
    --primary-dark: #138496;
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* Container */
.fgts-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 50%, #ffffff 100%);
    padding: 3rem 1rem;
}

.fgts-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Hero Section */
.fgts-hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .fgts-hero-section {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Info Section */
.fgts-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fgts-main-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .fgts-main-title {
        font-size: 3rem;
    }
}

.fgts-title-regular {
    color: var(--text-dark);
}

.fgts-title-highlight {
    color: var(--primary-color);
}

.fgts-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Illustration */
.fgts-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fgts-illustration img {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
}

@media (min-width: 1024px) {
    .fgts-illustration img {
        max-width: 720px;
    }
}

/* Results Card */
.fgts-results-card {
    background: rgba(23, 162, 184, 0.05);
    border: 2px solid rgba(23, 162, 184, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.fgts-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.fgts-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.fgts-results-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fgts-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fgts-result-label {
    color: var(--text-muted);
}

.fgts-result-value {
    font-weight: 600;
    color: var(--text-dark);
}

.fgts-result-value.fgts-success {
    color: var(--success-color);
}

.fgts-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(23, 162, 184, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.fgts-total-label {
    font-weight: 600;
    font-size: 1.125rem;
}

.fgts-total-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Calculator Section */
.fgts-calculator-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 3rem;
}

.fgts-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .fgts-card {
        padding: 2.5rem;
    }
}

.fgts-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Form */
.fgts-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fgts-form-group {
    display: flex;
    flex-direction: column;
}

.fgts-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fgts-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.fgts-info-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.fgts-tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    width: 250px;
    max-width: 80vw;
    margin-bottom: 0.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    line-height: 1.4;
}

.fgts-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
}

.fgts-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--bg-white);
}

.fgts-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.fgts-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fgts-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fgts-button:active {
    transform: translateY(0);
}

.fgts-button-icon {
    width: 20px;
    height: 20px;
}

.fgts-note {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Info Content */
.fgts-info-content {
    max-width: 1280px;
    margin: 4rem auto 0;
}

.fgts-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.fgts-content-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fgts-content-block {
    color: var(--text-muted);
}

.fgts-block-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.fgts-list {
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* Notifications */
.fgts-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 400px;
}

.fgts-notification-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fgts-notification-success {
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.fgts-notification-error {
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .fgts-calculator-wrapper {
        padding: 2rem 1rem;
    }
    
    .fgts-main-title {
        font-size: 2rem;
    }
    
    .fgts-description {
        font-size: 1rem;
    }
    
    .fgts-card {
        padding: 1.5rem;
    }
    
    .fgts-notification {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .fgts-form-section {
        display: none;
    }
    
    .fgts-notification {
        display: none;
    }
}
