/* Family Travel Voting Tool - WordPress Plugin Styles */

/* Reset and Base Styles */
.fvt-container * {
    box-sizing: border-box;
}

:root {
    /* Family-friendly color palette */
    --fvt-primary-color: #2563eb;
    --fvt-primary-hover: #1d4ed8;
    --fvt-secondary-color: #10b981;
    --fvt-accent-color: #f59e0b;
    --fvt-danger-color: #ef4444;
    --fvt-success-color: #22c55e;
    
    /* Neutral colors */
    --fvt-gray-50: #f9fafb;
    --fvt-gray-100: #f3f4f6;
    --fvt-gray-200: #e5e7eb;
    --fvt-gray-300: #d1d5db;
    --fvt-gray-400: #9ca3af;
    --fvt-gray-500: #6b7280;
    --fvt-gray-600: #4b5563;
    --fvt-gray-700: #374151;
    --fvt-gray-800: #1f2937;
    --fvt-gray-900: #111827;
    
    /* Typography */
    --fvt-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fvt-font-size-xs: 0.75rem;
    --fvt-font-size-sm: 0.875rem;
    --fvt-font-size-base: 1rem;
    --fvt-font-size-lg: 1.125rem;
    --fvt-font-size-xl: 1.25rem;
    --fvt-font-size-2xl: 1.5rem;
    --fvt-font-size-3xl: 1.875rem;
    --fvt-font-size-4xl: 2.25rem;
    
    /* Spacing */
    --fvt-spacing-1: 0.25rem;
    --fvt-spacing-2: 0.5rem;
    --fvt-spacing-3: 0.75rem;
    --fvt-spacing-4: 1rem;
    --fvt-spacing-5: 1.25rem;
    --fvt-spacing-6: 1.5rem;
    --fvt-spacing-8: 2rem;
    --fvt-spacing-10: 2.5rem;
    --fvt-spacing-12: 3rem;
    --fvt-spacing-16: 4rem;
    
    /* Shadows */
    --fvt-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --fvt-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --fvt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --fvt-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border radius */
    --fvt-radius-sm: 0.125rem;
    --fvt-radius-md: 0.375rem;
    --fvt-radius-lg: 0.5rem;
    --fvt-radius-xl: 0.75rem;
    --fvt-radius-2xl: 1rem;
}

/* Container and Layout */
.fvt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--fvt-spacing-4);
    font-family: var(--fvt-font-family);
    line-height: 1.6;
    color: var(--fvt-gray-800);
}

.fvt-section {
    margin-bottom: var(--fvt-spacing-12);
}

/* Typography */
.fvt-heading-1 {
    font-size: var(--fvt-font-size-4xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--fvt-gray-900);
    margin-bottom: var(--fvt-spacing-6);
}

.fvt-heading-2 {
    font-size: var(--fvt-font-size-3xl);
    font-weight: 700;
    line-height: 1.3;
    color: var(--fvt-gray-900);
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-heading-3 {
    font-size: var(--fvt-font-size-2xl);
    font-weight: 600;
    line-height: 1.4;
    color: var(--fvt-gray-800);
    margin-bottom: var(--fvt-spacing-3);
}

.fvt-text-lg {
    font-size: var(--fvt-font-size-lg);
    color: var(--fvt-gray-600);
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-text-base {
    font-size: var(--fvt-font-size-base);
    color: var(--fvt-gray-600);
    margin-bottom: var(--fvt-spacing-3);
}

/* Buttons */
.fvt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fvt-spacing-3) var(--fvt-spacing-6);
    font-size: var(--fvt-font-size-base);
    font-weight: 600;
    border-radius: var(--fvt-radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    min-height: 44px; /* Touch-friendly */
    font-family: inherit;
}

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

.fvt-btn-primary {
    background-color: var(--fvt-primary-color);
    color: white;
}

.fvt-btn-primary:hover {
    background-color: var(--fvt-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--fvt-shadow-lg);
    color: white;
    text-decoration: none;
}

.fvt-btn-secondary {
    background-color: white;
    color: var(--fvt-primary-color);
    border: 2px solid var(--fvt-primary-color);
}

.fvt-btn-secondary:hover {
    background-color: var(--fvt-primary-color);
    color: white;
    text-decoration: none;
}

.fvt-btn-success {
    background-color: var(--fvt-success-color);
    color: white;
}

.fvt-btn-success:hover {
    background-color: #16a34a;
    color: white;
    text-decoration: none;
}

.fvt-btn-lg {
    padding: var(--fvt-spacing-4) var(--fvt-spacing-8);
    font-size: var(--fvt-font-size-lg);
}

.fvt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fvt-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Cards */
.fvt-card {
    background: white;
    border-radius: var(--fvt-radius-xl);
    box-shadow: var(--fvt-shadow-md);
    padding: var(--fvt-spacing-6);
    margin-bottom: var(--fvt-spacing-6);
    border: 1px solid var(--fvt-gray-200);
}

.fvt-card-hover {
    transition: all 0.2s ease-in-out;
}

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

/* Forms */
.fvt-form-group {
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-label {
    display: block;
    font-size: var(--fvt-font-size-sm);
    font-weight: 600;
    color: var(--fvt-gray-700);
    margin-bottom: var(--fvt-spacing-2);
}

.fvt-input {
    width: 100%;
    padding: var(--fvt-spacing-3);
    border: 2px solid var(--fvt-gray-300);
    border-radius: var(--fvt-radius-lg);
    font-size: var(--fvt-font-size-base);
    transition: border-color 0.2s ease-in-out;
    min-height: 44px; /* Touch-friendly */
    font-family: inherit;
}

.fvt-input:focus {
    outline: none;
    border-color: var(--fvt-primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.fvt-textarea {
    resize: vertical;
    min-height: 100px;
}

.fvt-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Grid System */
.fvt-grid {
    display: grid;
    gap: var(--fvt-spacing-6);
}

.fvt-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.fvt-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Hero Section */
.fvt-hero {
    background: linear-gradient(135deg, var(--fvt-primary-color) 0%, #1e40af 100%);
    color: white;
    padding: var(--fvt-spacing-16) 0;
    text-align: center;
    margin-bottom: var(--fvt-spacing-12);
    border-radius: var(--fvt-radius-2xl);
}

.fvt-hero h1 {
    color: white;
    font-size: var(--fvt-font-size-4xl);
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-hero p {
    font-size: var(--fvt-font-size-xl);
    margin-bottom: var(--fvt-spacing-8);
    opacity: 0.9;
}

/* Stats Section */
.fvt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--fvt-spacing-6);
    margin: var(--fvt-spacing-12) 0;
}

.fvt-stat {
    text-align: center;
    padding: var(--fvt-spacing-6);
    background: white;
    border-radius: var(--fvt-radius-xl);
    box-shadow: var(--fvt-shadow-md);
}

.fvt-stat-number {
    display: block;
    font-size: var(--fvt-font-size-4xl);
    font-weight: 800;
    color: var(--fvt-primary-color);
    margin-bottom: var(--fvt-spacing-2);
}

.fvt-stat-label {
    font-size: var(--fvt-font-size-sm);
    color: var(--fvt-gray-600);
    font-weight: 600;
}

/* Progress Bar */
.fvt-progress {
    background-color: var(--fvt-gray-200);
    border-radius: var(--fvt-radius-lg);
    height: 8px;
    overflow: hidden;
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-progress-bar {
    background-color: var(--fvt-primary-color);
    height: 100%;
    transition: width 0.3s ease-in-out;
}

/* Voting Interface */
.fvt-voting-option {
    background: white;
    border: 2px solid var(--fvt-gray-200);
    border-radius: var(--fvt-radius-xl);
    padding: var(--fvt-spacing-4);
    margin-bottom: var(--fvt-spacing-4);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.fvt-voting-option:hover {
    border-color: var(--fvt-primary-color);
    box-shadow: var(--fvt-shadow-md);
}

.fvt-voting-option.selected {
    border-color: var(--fvt-primary-color);
    background-color: rgb(37 99 235 / 0.05);
}

.fvt-voting-option.selected::after {
    content: '✓';
    position: absolute;
    top: var(--fvt-spacing-3);
    right: var(--fvt-spacing-3);
    background-color: var(--fvt-primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fvt-font-size-sm);
    font-weight: 600;
}

.fvt-option-title {
    font-size: var(--fvt-font-size-lg);
    font-weight: 600;
    color: var(--fvt-gray-900);
    margin-bottom: var(--fvt-spacing-2);
}

.fvt-option-description {
    font-size: var(--fvt-font-size-sm);
    color: var(--fvt-gray-600);
    margin-bottom: var(--fvt-spacing-3);
}

/* Family Member Cards */
.fvt-member-card {
    background: white;
    border-radius: var(--fvt-radius-lg);
    padding: var(--fvt-spacing-4);
    text-align: center;
    border: 2px solid var(--fvt-gray-200);
    transition: all 0.2s ease-in-out;
}

.fvt-member-card.voted {
    border-color: var(--fvt-success-color);
    background-color: rgb(34 197 94 / 0.05);
}

.fvt-member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--fvt-primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fvt-font-size-xl);
    font-weight: 600;
    margin: 0 auto var(--fvt-spacing-3);
}

.fvt-member-name {
    font-weight: 600;
    color: var(--fvt-gray-900);
    margin-bottom: var(--fvt-spacing-1);
}

.fvt-member-status {
    font-size: var(--fvt-font-size-sm);
    color: var(--fvt-gray-500);
}

.fvt-member-status.voted {
    color: var(--fvt-success-color);
    font-weight: 600;
}

/* Alerts and Notifications */
.fvt-alert {
    padding: var(--fvt-spacing-4);
    border-radius: var(--fvt-radius-lg);
    margin-bottom: var(--fvt-spacing-4);
    border-left: 4px solid;
}

.fvt-alert-info {
    background-color: rgb(59 130 246 / 0.1);
    border-color: var(--fvt-primary-color);
    color: var(--fvt-primary-color);
}

.fvt-alert-success {
    background-color: rgb(34 197 94 / 0.1);
    border-color: var(--fvt-success-color);
    color: var(--fvt-success-color);
}

.fvt-alert-warning {
    background-color: rgb(245 158 11 / 0.1);
    border-color: var(--fvt-accent-color);
    color: #d97706;
}

.fvt-alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Modal */
.fvt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fvt-modal.active {
    display: flex;
}

.fvt-modal-content {
    background: white;
    border-radius: var(--fvt-radius-xl);
    padding: var(--fvt-spacing-8);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.fvt-modal-close {
    position: absolute;
    top: var(--fvt-spacing-4);
    right: var(--fvt-spacing-4);
    background: none;
    border: none;
    font-size: var(--fvt-font-size-2xl);
    cursor: pointer;
    color: var(--fvt-gray-400);
}

.fvt-modal-close:hover {
    color: var(--fvt-gray-600);
}

/* Step Navigation */
.fvt-step-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--fvt-spacing-8);
    padding: 0 var(--fvt-spacing-4);
    flex-wrap: wrap;
}

.fvt-step {
    display: flex;
    align-items: center;
    margin: var(--fvt-spacing-2);
}

.fvt-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--fvt-gray-300);
    color: var(--fvt-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: var(--fvt-spacing-2);
}

.fvt-step.active .fvt-step-number {
    background-color: var(--fvt-primary-color);
    color: white;
}

.fvt-step.completed .fvt-step-number {
    background-color: var(--fvt-success-color);
    color: white;
}

.fvt-step-label {
    font-size: var(--fvt-font-size-sm);
    font-weight: 600;
    color: var(--fvt-gray-600);
}

.fvt-step.active .fvt-step-label {
    color: var(--fvt-primary-color);
}

.fvt-step.completed .fvt-step-label {
    color: var(--fvt-success-color);
}

/* Hidden class */
.fvt-hidden {
    display: none !important;
}

/* Upgrade prompts */
.fvt-upgrade-prompt {
    background: linear-gradient(135deg, var(--fvt-accent-color) 0%, #f97316 100%);
    color: white;
    padding: var(--fvt-spacing-6);
    border-radius: var(--fvt-radius-xl);
    text-align: center;
    margin: var(--fvt-spacing-6) 0;
}

.fvt-upgrade-prompt h3 {
    color: white;
    margin-bottom: var(--fvt-spacing-3);
}

.fvt-upgrade-prompt p {
    margin-bottom: var(--fvt-spacing-4);
    opacity: 0.9;
}

.fvt-upgrade-btn {
    background-color: white;
    color: var(--fvt-accent-color);
    font-weight: 700;
}

.fvt-upgrade-btn:hover {
    background-color: var(--fvt-gray-100);
    transform: translateY(-2px);
    color: var(--fvt-accent-color);
}

/* Footer Section */
.fvt-footer {
    background-color: var(--fvt-gray-900);
    color: white;
    padding: var(--fvt-spacing-12) 0;
    margin-top: var(--fvt-spacing-16);
    border-radius: var(--fvt-radius-2xl);
}

.fvt-footer h3 {
    color: white;
    margin-bottom: var(--fvt-spacing-4);
}

.fvt-footer p {
    color: var(--fvt-gray-300);
    margin-bottom: var(--fvt-spacing-3);
}

.fvt-footer a {
    color: var(--fvt-primary-color);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fvt-container {
        padding: 0 var(--fvt-spacing-3);
    }
    
    .fvt-hero {
        padding: var(--fvt-spacing-12) 0;
    }
    
    .fvt-hero h1 {
        font-size: var(--fvt-font-size-3xl);
    }
    
    .fvt-hero p {
        font-size: var(--fvt-font-size-lg);
    }
    
    .fvt-grid-2,
    .fvt-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .fvt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fvt-btn-lg {
        padding: var(--fvt-spacing-3) var(--fvt-spacing-6);
        font-size: var(--fvt-font-size-base);
    }
    
    .fvt-step-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--fvt-spacing-2);
    }
    
    .fvt-step {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .fvt-stats {
        grid-template-columns: 1fr;
    }
    
    .fvt-step-label {
        display: none;
    }
    
    .fvt-step {
        margin: var(--fvt-spacing-1);
    }
}

/* WordPress specific overrides */
.fvt-container .fvt-btn {
    border: none !important;
}

.fvt-container .fvt-input,
.fvt-container .fvt-textarea,
.fvt-container .fvt-select {
    border: 2px solid var(--fvt-gray-300) !important;
    box-shadow: none !important;
}

.fvt-container .fvt-input:focus,
.fvt-container .fvt-textarea:focus,
.fvt-container .fvt-select:focus {
    border-color: var(--fvt-primary-color) !important;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1) !important;
}

/* Accessibility improvements */
.fvt-btn:focus-visible {
    outline: 2px solid var(--fvt-primary-color);
    outline-offset: 2px;
}

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

/* Loading states */
.fvt-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fvt-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: fvt-spin 1s ease-in-out infinite;
}

@keyframes fvt-spin {
    to { transform: rotate(360deg); }
}

