/* =========================================
   Tides of War – Homepage Editor
   ========================================= */

.tow-homepage-editor,
.tow-homepage-editor-guard {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 20px 40px;
    color: #f5f7ff;
}

.tow-homepage-editor h1,
.tow-homepage-editor-guard h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffce3a;
}

.tow-homepage-editor > p,
.tow-homepage-editor-guard > p {
    font-size: 0.95rem;
    color: #d5defb;
    margin-bottom: 18px;
}

/* Guard / Access denied */
.tow-homepage-editor-guard {
    background: linear-gradient(135deg, #210b0b, #050711);
    border-radius: 4px;
    border: 1px solid rgba(180, 60, 60, 0.7);
    padding: 20px 20px 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.tow-homepage-editor-guard a {
    color: #ffce3a;
    text-decoration: none;
}

.tow-homepage-editor-guard a:hover {
    text-decoration: underline;
}

/* Card around ACF form */
.tow-homepage-editor #tow-homepage-acf-form {
    background: linear-gradient(135deg, #050818, #050b25);
    border-radius: 4px;
    border: 1px solid rgba(61, 98, 196, 0.8);
    padding: 18px 18px 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.85);
}

/* General ACF layout tweaks */
.tow-homepage-editor .acf-fields {
    border: none;
    background: transparent;
}

.tow-homepage-editor .acf-field {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 12px;
    padding-bottom: 12px;
}

.tow-homepage-editor .acf-field:first-child {
    border-top: none;
}

.tow-homepage-editor .acf-label label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #dfe7ff;
}

.tow-homepage-editor .acf-label p.description {
    font-size: 0.8rem;
    color: #9fb0ff;
}

.tow-homepage-editor .acf-input input[type="text"],
.tow-homepage-editor .acf-input input[type="url"],
.tow-homepage-editor .acf-input textarea,
.tow-homepage-editor .acf-input select {
    background: #050815;
    border: 1px solid rgba(96, 138, 240, 0.7);
    color: #f5f7ff;
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 0.92rem;
}

.tow-homepage-editor .acf-input input[type="text"]:focus,
.tow-homepage-editor .acf-input input[type="url"]:focus,
.tow-homepage-editor .acf-input textarea:focus,
.tow-homepage-editor .acf-input select:focus {
    outline: none;
    border-color: #ffce3a;
    box-shadow: 0 0 0 1px rgba(255,206,58,0.6);
}

/* Tabs */
.tow-homepage-editor .acf-tab-group {
    background: #050815;
    border-bottom: 1px solid rgba(96, 138, 240, 0.6);
}

.tow-homepage-editor .acf-tab-group li a {
    background: transparent;
    border-radius: 0;
    border: none;
    color: #bdc7ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 14px;
}

.tow-homepage-editor .acf-tab-group li.active a {
    background: linear-gradient(135deg, #141c48, #070c2b);
    color: #ffce3a;
    border-bottom: 2px solid #ffce3a;
}

/* Submit button */
.tow-homepage-editor .acf-form-submit {
    margin-top: 18px;
}

.tow-homepage-editor .acf-form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.6em;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.6);
    background: linear-gradient(135deg, #4ea5ff, #1f7adb);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.tow-homepage-editor .acf-form-submit input[type="submit"]:hover {
    background: linear-gradient(135deg, #6cc0ff, #3d8cf0);
    transform: translateY(-1px);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .tow-homepage-editor,
    .tow-homepage-editor-guard {
        margin-top: 24px;
        margin-bottom: 40px;
    }

    .tow-homepage-editor h1 {
        font-size: 1.4rem;
    }
}
