/* Custom styles for Eksisozluk Clone */

/* Typography enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Entry content styling */
.prose {
    line-height: 1.6;
}

.prose p {
    margin-bottom: 1rem;
}

.prose a {
    color: #15803d; /* green-700 */
    text-decoration: underline;
}

.prose a:hover {
    color: #166534; /* green-800 */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #15803d; /* green-700 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534; /* green-800 */
}

/* Entry highlight effect when targeted by URL hash */
:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(21, 128, 61, 0.2); /* green-700 with opacity */
    }
    100% {
        background-color: transparent;
    }
}

/* Custom tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile menu */
.mobile-menu {
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Custom checkbox style */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #15803d; /* green-700 */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked {
    background-color: #15803d; /* green-700 */
}

.custom-checkbox:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* Responsive table */
@media (max-width: 640px) {
    .responsive-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Entry quote style */
blockquote {
    border-left: 4px solid #15803d; /* green-700 */
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4b5563; /* gray-600 */
    font-style: italic;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #15803d; /* green-700 */
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
