/*
Theme Name: Voyage Astro
Theme Description: Thème WordPress personnalisé pour le blog de photographie astrologique. Basé sur Tailwind CSS via CDN.
Author: Fabien
Version: 1.10.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voyage-astro
*/

/* 
 * Personnalisation de la pagination WordPress pour Tailwind sans compiler
 */
.template-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.template-pagination .page-numbers {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    color: white;
}

.template-pagination .page-numbers:hover {
    background-color: #292938;
}

.template-pagination .page-numbers.current {
    background-color: rgb(192 132 252 / 0.2);
    font-weight: 700;
    color: rgb(192 132 252);
}

/* Centrage des descriptions d'images */
.prose figcaption,
.wp-caption-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Alignements WordPress par défaut */
.aligncenter,
div.aligncenter,
figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Pour les figures, display: table permet de restreindre la largeur à celle de l'image
   puis de centrer le bloc via margin: auto */
figure.aligncenter {
    display: table;
}

/* S'assurer que l'image elle-même est centrée si c'est un bloc */
.aligncenter img,
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}


/* Clearfix pour les flottants dans le contenu */
.prose::after {
    content: "";
    display: table;
    clear: both;
}

/* Custom Zoom styling for high-res images */
.zoomable-link {
    position: relative;
    display: inline-block;
    max-width: 100%;
    cursor: none;
}

.zoomable-link img {
    cursor: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.zoomable-link:hover img {
    transform: scale(1.015);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* Custom Zoom Follower (Cursor) */
#zoom-cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    background: rgba(192, 132, 252, 0.9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}