/* styles.css */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
}

.app-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px 40px;
}

h1 {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: left;
}

.card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.card h2 {
    margin-top: 0;
    font-size: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d0d0d5;
    margin-top: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    background: #007bff;
    color: white;
}

button:hover {
    background: #005fcc;
}

.logout-btn {
    float: right;
    margin: 10px;
    background: #e33;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 5px;
}

.logout-btn:hover {
    background: #c00;
}

.output {
    background: #111;
    color: #0f0;
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 12px;
    max-height: 300px;
    overflow: auto;
}

/* Competitor Table */

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    table-layout: fixed;
}

.competitor-table th,
.competitor-table td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top;
}

.competitor-table th {
    background: #f2f2f2;
    font-weight: 600;
}

.competitor-table tr:nth-child(even) {
    background: #fafafa;
}

.competitor-table td:nth-child(3) {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competitor-table a {
    color: #0077cc;
    text-decoration: none;
}

.competitor-table a:hover {
    text-decoration: underline;
}

/* Selected competitors */

.selected-box {
    background: #fafafa;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 15px;
}

.selected-box ul {
    padding-left: 20px;
    margin: 0;
}

/* Location autocomplete */

.suggestion-box {
    background: #fff;
    border: 1px solid #ccc;
    max-width: 300px;
    position: absolute;
    z-index: 9999;
    display: none;
}

.suggestion-box div {
    padding: 6px 10px;
    cursor: pointer;
}

.suggestion-box div:hover {
    background: #f0f0f0;
}

/* Content Brief Panel */

.brief-panel {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e4e4e8;
}

.brief-help {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 8px;
}

.brief-grid .brief-full {
    grid-column: 1 / -1;
}

.brief-output {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fcfcff;
    border-radius: 8px;
    border: 1px solid #d6d8f0;
    font-size: 14px;
    line-height: 1.45;
    max-height: 600px;
    overflow-y: auto;
}

.brief-output h2 {
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 8px;
}

.brief-output h3 {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.brief-output ul {
    margin: 6px 0 6px 20px;
    padding: 0;
}


.brief-arch-section .brief-sub {
    padding: 0 0 0 30px;
    margin: 0px;
}

.brief-arch-section h3 {
    padding: 0 0 0 15px;
}

.brief-arch-headings {
    padding: 0 0 0 45px;
}