/**
 * Google Fonts Pair Finder Styles
 */

.fonts-pair-finder-wrapper {
    max-width: 100%;
}

/* Panel Styles */
.preview-panel,
.css-output-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bs-body-bg);
}

.panel-header {
    background: var(--bs-light);
    padding: 12px 16px;
    border-bottom: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .panel-header {
    background: var(--bs-dark);
}

.panel-body {
    background: var(--bs-body-bg);
}

/* Preview Container */
#previewContainer {
    min-height: 300px;
}

.font-preview-profile,
.font-preview-article,
.font-preview-card {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Profile Preview */
.profile-avatar {
    display: inline-block;
}

.profile-avatar svg {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Article Preview */
.article-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-image svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Card Preview */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.preview-card {
    padding: 24px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .preview-card {
    background: var(--bs-dark);
}

.card-icon {
    display: inline-block;
}

/* CSS Code Block */
.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    color: #333;
}

[data-bs-theme="dark"] .code-block {
    background: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

/* Fullscreen Preview */
.fullscreen-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    overflow: auto;
}

.fullscreen-preview .panel-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px !important;
}

.fullscreen-preview #previewContainer {
    min-height: calc(100vh - 120px);
}

/* Responsive */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 4px;
    }

    .fullscreen-preview .panel-body {
        padding: 16px !important;
    }
}

/* Form Controls */
.form-label.small {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
}

/* SVG Adjustments for Dark Mode */
[data-bs-theme="dark"] .profile-avatar svg circle,
[data-bs-theme="dark"] .profile-avatar svg path {
    fill: #4a5568;
}

[data-bs-theme="dark"] .profile-avatar svg circle:first-child {
    fill: #2d3748;
}

[data-bs-theme="dark"] .article-image svg rect {
    fill: #2d3748;
}

[data-bs-theme="dark"] .article-image svg circle,
[data-bs-theme="dark"] .article-image svg path {
    fill: #4a5568;
    stroke: #4a5568;
}

[data-bs-theme="dark"] .card-icon svg rect {
    opacity: 0.8;
}
