/* =========================
   REYMU NOT CENTER - TAM YUVARLAK ÇÖZÜM
========================= */

.reymu-notice-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(0,0,0,0.08);
}

.reymu-notice-center.show {
    opacity: 1;
}

/* Kapatma butonu - TAM YUVARLAK */
.reymu-notice-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%; /* Yuvarlak */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10001;
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Flex ile merkezleme */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Daire sabit */
    transform: none !important;
    
    /* İçerik taşmasını engelle */
    overflow: hidden;
    box-sizing: border-box;
}

/* Çarpı işareti - TAM ORTADA, DÜZGÜN DÖNEN */
.reymu-notice-close::before {
    content: 'X';
    align-items: center;
    justify-content: center;
    font-size: 24px;
    
    /* Line-height sorununu çözmek için */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    
    color: #666;
    transition: transform 0.3s ease;
    transform-origin: center center;
    
    /* Herhangi bir taşmayı engelle */
    text-align: center;
}

.reymu-notice-close:hover::before {
    transform: rotate(5deg) scale(1.2);
    color: #333;
}

.reymu-notice-close:active::before {
    transform: rotate(5deg) scale(0.9);
}

/* Daire hover efekti */
.reymu-notice-close:hover {
    background: #f0f0f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
}

/* Başlık */
.reymu-notice-title {
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    padding-right: 20px;
}

/* Açıklama */
.reymu-notice-description {
    line-height: 1.6;
    color: #555;
    font-weight: 400;
    padding-right: 20px;
}

/* Görsel alanı */
.reymu-notice-image {
    margin-bottom: 15px;
    text-align: center;
}

.reymu-notice-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Link stilleri */
.reymu-notice-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.reymu-notice-link:hover {
    transform: scale(1.01);
}

.reymu-notice-link:hover .reymu-notice-title {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* Animasyonlu giriş */
@keyframes noticePopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.reymu-notice-center.show {
    animation: noticePopIn 0.4s ease forwards;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .reymu-notice-center {
        width: 95%;
        padding: 20px;
    }
    
    .reymu-notice-close {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
    }
    
    .reymu-notice-close::before {
        font-size: 22px;
    }
    
    .reymu-notice-title {
        font-size: 20px !important;
    }
    
    .reymu-notice-description {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .reymu-notice-center {
        padding: 15px;
    }
    
    .reymu-notice-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
    }
    
    .reymu-notice-close::before {
        font-size: 20px;
    }
}