/* TargetResume - Home Page Styles */

.usage-banner {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile-section {
    margin-bottom: var(--space-xl);
}

/* Profile Summary (Compact View) */
.profile-summary {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.profile-summary-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.profile-summary-compact h2 {
    margin: 0;
}

.profile-summary-compact button {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .profile-summary-compact {
        flex-direction: row;
        align-items: center;
    }
}

.profile-section h2,
.job-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Form Grid Responsiveness */
@media (max-width: 640px) {
    .profile-section form > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* Character Counter Styling */
.form-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-helper span:first-child {
    font-weight: 500;
    color: var(--gray-600);
}

/* Textarea Focus Enhancement */
.form-textarea:focus {
    min-height: 180px;
    transition: min-height var(--transition-base);
}

/* Generate Button Special Styling */
#generateBtn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.025em;
}

#generateBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.4);
}

#generateBtn:active:not(:disabled) {
    transform: translateY(0);
}

#generateBtn .spinner {
    margin-right: var(--space-sm);
}

/* Error Message Animation */
#errorMessage {
    animation: slideDown 0.3s ease-out;
    padding: var(--space-md);
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-md);
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 var(--space-md);
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: var(--space-md);
    }
}

/* Section Divider */
.job-section {
    animation: fadeIn 0.4s ease-in-out 0.2s both;
}

/* Usage Banner Styling */
.usage-banner strong {
    color: var(--primary);
}

.usage-banner .text-muted {
    font-size: 0.813rem;
}

/* Input Focus Glow Effect */
.form-input:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Placeholder Styling */
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
    opacity: 1;
}

/* Save Profile Button Hover Effect */
.profile-section .btn-secondary {
    transition: all var(--transition-base);
}

.profile-section .btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-300);
    transform: translateY(-1px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .usage-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .card {
        padding: var(--space-lg);
    }

    .form-textarea {
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.25rem;
    }

    .profile-section h2,
    .job-section h2 {
        font-size: 1.125rem;
    }

    #generateBtn {
        padding: 0.875rem 1.25rem;
    }
}

/* Loading State */
#generateBtn:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
    transform: none !important;
}

#generateBtn:disabled:hover {
    box-shadow: none;
}

/* Success State Animation */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Skills Input Enhancement */
#skills {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* Education and Experience Textarea Monospace for Better Readability */
#experience,
#education {
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Install App Footer */
.install-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: white;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  z-index: 100;
}

.install-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.install-link:hover {
  text-decoration: underline;
}

/* Add bottom padding to main content to prevent overlap */
.main-content {
  padding-bottom: 60px;
}