/**
 * VisionMetrics Custom Styles
 * Add your custom styles here
 */

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-stat-value {
        font-size: 1.25rem;
    }
    
    .btn-login {
        display: none;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-cta-actions .btn {
        width: 100%;
    }
}

/* Card hover effects */
.card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon {
    transition: transform 0.3s ease;
}

/* Button icon alignment */
.btn svg {
    flex-shrink: 0;
}

/* Form focus states */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--vision-blue);
    box-shadow: 0 0 0 3px rgba(53, 137, 246, 0.15);
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    border-radius: 4px;
    opacity: 0.3;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

/* Selection color */
::selection {
    background: rgba(53, 137, 246, 0.3);
    color: var(--foreground);
}

/* Blog post cards */
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.post-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--vision-blue);
}

/* WordPress admin bar adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Page transitions */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Form messages */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    font-size: 0.875rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: var(--muted);
    color: var(--foreground);
}

.pagination a:hover {
    background: var(--vision-blue);
    color: white;
}

.pagination .current {
    background: var(--vision-blue);
    color: white;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-preview,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}
