/* Additional custom styles for Binali Efe website */

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-gradient h2 {
        font-size: 2.5rem;
    }
    
    .wp-card {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    main {
        width: 100%;
        max-width: 100%;
    }
}

/* Animation for loading content */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-pattern {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Form styling */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
.btn-hover-scale {
    transition: all 0.2s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Image gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Category colors */
.category-poem {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-article {
    background-color: #dcfce7;
    color: #166534;
}

.category-photo {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.category-event {
    background-color: #ffe4e6;
    color: #dc2626;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.wp-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

/* Responsive embedded media in post content */
.prose iframe,
.prose video,
.prose embed,
.prose object {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.prose img {
    max-width: 100%;
    height: auto;
}

.responsive-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #000;
}

.responsive-embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ensure embedded videos fill desktop width even with prose iframe defaults */
.responsive-embed .responsive-embed-iframe {
    max-width: none;
    aspect-ratio: auto;
}

.prose .responsive-embed-iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.epyt-video-wrapper {
    width: 100%;
}
