@import 'shared.css';

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-section {
    background: var(--blue);
    border-radius: 12px;
    padding: 48px 32px 40px;
    text-align: center;
}

.search-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.search-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.search-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
}

.search-bar {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.15s;
}

.search-bar:focus-within { border-color: #fff; }

.search-bar input {
    flex: 1;
    padding: 13px 16px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-1);
    font-family: var(--sans);
}

.search-bar input::placeholder { color: var(--text-3); }

.search-bar button {
    padding: 13px 22px;
    background: var(--text-1);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.search-bar button:hover { background: var(--blue-dark); }

.search-tokens {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.token {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 3px 9px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-3);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
}

.section-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.guide-item {
    background: var(--white);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.guide-item:nth-child(3n) { border-right: none; }
.guide-item:nth-last-child(-n+3):nth-child(3n+1),
.guide-item:nth-last-child(-n+3):nth-child(3n+1) ~ .guide-item { border-bottom: none; }

.guide-item:hover { background: var(--bg); }

.guide-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

.guide-description {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    flex: 1;
}

.modal-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
}

.modal-close:hover { color: var(--text-1); background: var(--bg); }

.modal-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.modal-result p { display: flex; gap: 8px; margin-bottom: 5px; }
.modal-result p:last-child { margin-bottom: 0; }
.modal-result strong { color: var(--text-3); min-width: 70px; font-weight: 500; }

.modal-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.modal-actions { display: flex; flex-direction: column; gap: 8px; }

.modal-btn {
    padding: 11px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    transition: all 0.15s;
    text-align: left;
}

.modal-btn-primary { background: var(--blue); color: #fff; }
.modal-btn-primary:hover { background: var(--blue-dark); }
.modal-btn-secondary { background: var(--bg); color: var(--text-1); border: 1px solid var(--border-md); }
.modal-btn-secondary:hover { background: var(--border); }

.user-info {
    display: flex;
    align-items: center;
    margin-left: 8px;
    color: var(--text-2);
    font-size: 13px;
    gap: 10px;
}

@media (max-width: 768px) {
    .main-content { padding: 20px 16px 48px; }
    .search-section { padding: 32px 20px 28px; }
    .search-title { font-size: 22px; }
    .guide-grid { grid-template-columns: 1fr; }
}
