/* Font Pairing Generator Styles */

.fpg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #faf8f5;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fpg-header {
    text-align: center;
    margin-bottom: 40px;
}

.fpg-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.fpg-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.fpg-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.fpg-select {
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    min-width: 200px;
    transition: all 0.3s ease;
}

.fpg-select:hover {
    border-color: #ccc;
}

.fpg-select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.fpg-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.fpg-button:hover {
    background: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.fpg-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.2);
}

.fpg-preview {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in;
    border: 1px solid #ebebeb;
}

.fpg-preview-content {
    margin-bottom: 30px;
}

.fpg-heading-preview {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
    text-align: left;
    line-height: 1.2;
}

.fpg-body-preview {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
    text-align: left;
}

.fpg-divider {
    height: 1px;
    background: #ebebeb;
    margin: 30px 0;
}

.fpg-font-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.fpg-font-label {
    flex: 1;
    min-width: 200px;
}

.fpg-label-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.fpg-font-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.fpg-loading {
    text-align: center;
    padding: 40px;
}

.fpg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff5722;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.fpg-loading p {
    color: #666;
    font-size: 16px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fpg-container {
        padding: 30px 15px;
    }
    
    .fpg-title {
        font-size: 36px;
    }
    
    .fpg-subtitle {
        font-size: 16px;
    }
    
    .fpg-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fpg-select,
    .fpg-button {
        width: 100%;
    }
    
    .fpg-preview {
        padding: 30px 20px;
    }
    
    .fpg-heading-preview {
        font-size: 28px;
    }
    
    .fpg-body-preview {
        font-size: 14px;
    }
    
    .fpg-font-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .fpg-container {
        background: #1a1a1a;
        color: #f0f0f0;
    }
    
    .fpg-title,
    .fpg-heading-preview,
    .fpg-font-name {
        color: #f0f0f0;
    }
    
    .fpg-subtitle,
    .fpg-body-preview,
    .fpg-loading p {
        color: #ccc;
    }
    
    .fpg-preview {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .fpg-select {
        background: #2a2a2a;
        color: #f0f0f0;
        border-color: #444;
    }
    
    .fpg-select:hover {
        border-color: #666;
    }
    
    .fpg-divider {
        background: #444;
    }
}
