/* ExpatTürk — kurumsal UI katmanı */

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-tile-brand {
    background: #eff6ff;
    color: #2563eb;
}

.icon-tile-slate {
    background: #f1f5f9;
    color: #475569;
}

.icon-tile-amber {
    background: #fffbeb;
    color: #d97706;
}

.group:hover .icon-tile-brand {
    background: #dbeafe;
    color: #1d4ed8;
}

.forum-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.forum-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.forum-card-arrow {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.forum-card:hover .forum-card-arrow {
    color: #2563eb;
    transform: translateX(2px);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.state-row:hover {
    background: #eff6ff;
}

.state-row:last-child {
    border-bottom: none;
}

.hero-pattern {
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

/* Eyalet accordion */
.states-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.states-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 1.25rem;
    text-align: left;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.states-accordion-trigger:hover {
    background: #f8fafc;
}

.states-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 9999px;
}

.states-accordion-chevron {
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.states-accordion.is-open .states-accordion-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.states-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}

.states-accordion.is-open .states-accordion-panel {
    border-top-color: #f1f5f9;
}

.states-search-wrap {
    padding: 1rem 1.25rem 0.5rem;
    position: relative;
}

.states-search-wrap input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.states-search-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.states-search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-20%);
    color: #94a3b8;
    pointer-events: none;
}

.states-list {
    max-height: min(24rem, 55vh);
    overflow-y: auto;
}

.state-row.is-filtered {
    display: none !important;
}

.state-row.is-active {
    background: #dbeafe !important;
    outline: 2px solid #93c5fd;
    outline-offset: -2px;
}

.states-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* JS kapalı — eyalet listesi görünür kalsın */
html.no-js .states-accordion-panel {
    max-height: none !important;
}

html.no-js .states-accordion-trigger {
    pointer-events: none;
}

html.no-js .states-search-wrap {
    display: none;
}

/* Rich text editor */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rich-editor-wrap {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.rich-editor-wrap .ql-toolbar {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.rich-editor-wrap .ql-container {
    border: none;
    font-size: 0.875rem;
    min-height: 8rem;
}

.rich-editor-wrap .ql-editor {
    min-height: 8rem;
}

.post-content ul,
.post-content ol {
    margin: 0.5rem 0 0.5rem 1.25rem;
}

.post-content p {
    margin: 0.5rem 0;
}

.post-content p:first-child {
    margin-top: 0;
}

.post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 3px solid #cbd5e1;
    padding-left: 0.75rem;
    color: #64748b;
    margin: 0.5rem 0;
}

.post-content h3 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0.75rem 0 0.25rem;
}

/* OAuth giriş butonları */
.oauth-stack {
    display: flex;
    flex-direction: column;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.oauth-btn:hover {
    transform: translateY(-1px);
}

.oauth-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.oauth-btn-label {
    flex: 0 1 auto;
}

.oauth-btn-google {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.oauth-btn-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.oauth-btn-apple {
    background: #0f172a;
    color: #fff;
    border: 1px solid #0f172a;
}

.oauth-btn-apple:hover {
    background: #1e293b;
}

.oauth-btn-facebook {
    background: #1877f2;
    color: #fff;
    border: 1px solid #1877f2;
}

.oauth-btn-facebook:hover {
    background: #166fe5;
}

.oauth-divider {
    position: relative;
    margin: 1.25rem 0;
    text-align: center;
}

.oauth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: #e2e8f0;
}

.oauth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    background: #fff;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}