/* SunucuRadar - main.css
   Ortak tasarım kuralları buraya taşınacak.
*/

/* =========================================================
   SERVER SLOT BOX
========================================================= */

.server-slot-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .18);
}

.server-slot-box.is-ok {
    border-color: rgba(34, 197, 94, .26);
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.13), transparent 34%),
        rgba(15, 23, 42, .72);
}

.server-slot-box.is-blocked {
    border-color: rgba(251, 191, 36, .28);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.13), transparent 34%),
        rgba(15, 23, 42, .72);
}

.server-slot-box span {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(134,239,172,.22);
    font-size: 12px;
    font-weight: 1000;
}

.server-slot-box.is-blocked span {
    color: #fde68a;
    background: rgba(120,53,15,.22);
    border-color: rgba(251,191,36,.24);
}

.server-slot-box strong {
    display: block;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 1000;
}

.server-slot-box p {
    margin: 7px 0 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.server-slot-box form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 720px) {
    .server-slot-box {
        align-items: stretch;
        flex-direction: column;
    }

    .server-slot-box form .button,
    .server-slot-box form button {
        width: 100%;
    }
}

/* =========================================================
   SERVER ADD PAGE - PROFESSIONAL FORM
========================================================= */

.server-add-page {
    width: min(1040px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
    padding: 34px;
    border-radius: 30px;
    border-color: rgba(34, 197, 94, .24);
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.14), transparent 34%),
        radial-gradient(circle at 100% 10%, rgba(56,189,248,.10), transparent 30%),
        linear-gradient(145deg, rgba(15,23,42,.96), rgba(2,6,23,.90));
    box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.server-add-page > .badge {
    margin-bottom: 14px;
}

.server-add-page h1 {
    margin-bottom: 12px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: .95;
    letter-spacing: -2px;
}

.server-add-page > p {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.65;
}

.server-add-page .server-slot-box {
    margin-top: 22px;
    margin-bottom: 26px;
    padding: 20px;
    border-radius: 24px;
}

.server-add-page .server-slot-box strong {
    font-size: 22px;
}

.server-add-page .server-slot-box p {
    max-width: 720px;
}

.server-add-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.server-add-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #dbeafe;
    font-weight: 1000;
}

.server-add-form label:has(textarea),
.server-add-form label:has(input[type="file"]),
.server-add-form label:has(select) {
    grid-column: 1 / -1;
}

.server-add-form label:first-child,
.server-add-form label:nth-child(2),
.server-add-form label:nth-child(5),
.server-add-form label:nth-child(6),
.server-add-form label:nth-child(7),
.server-add-form label:nth-child(8),
.server-add-form label:nth-child(9),
.server-add-form label:nth-child(10),
.server-add-form label:nth-child(11) {
    grid-column: 1 / -1;
}

.server-add-form input,
.server-add-form select,
.server-add-form textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.24);
    background: rgba(2,6,23,.58);
    color: #f8fafc;
    padding: 13px 15px;
    font-weight: 850;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.server-add-form textarea {
    min-height: 140px;
    resize: vertical;
}

.server-add-form input:focus,
.server-add-form select:focus,
.server-add-form textarea:focus {
    border-color: rgba(134,239,172,.52);
    box-shadow: 0 0 0 4px rgba(34,197,94,.10);
    background: rgba(2,6,23,.72);
}

.server-add-form input[type="file"] {
    padding: 12px;
    min-height: 52px;
    cursor: pointer;
    border-style: dashed;
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.10), transparent 38%),
        rgba(2,6,23,.54);
}

.server-add-form small,
.server-add-form .hint {
    color: #94a3b8;
    line-height: 1.55;
    font-weight: 800;
}

.server-add-form .actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(148,163,184,.14);
}

.server-add-form .actions button,
.server-add-form .actions .button {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 1000;
}

.server-add-form .actions button[type="submit"] {
    min-width: 240px;
    box-shadow: 0 16px 38px rgba(34,197,94,.20);
}

.server-add-page select {
    cursor: pointer;
}

.server-add-page option {
    color: #0f172a;
}

@media (max-width: 820px) {
    .server-add-page {
        width: min(100% - 18px, 1040px);
        padding: 22px;
        border-radius: 24px;
    }

    .server-add-form {
        grid-template-columns: 1fr;
    }

    .server-add-form label {
        grid-column: 1 / -1;
    }

    .server-add-form .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .server-add-form .actions button,
    .server-add-form .actions .button {
        width: 100%;
    }
}

/* =========================================================
   SERVER ADD PAGE - REAL FORM-ROW DESIGN OVERRIDE
========================================================= */

.server-add-page {
    width: min(1120px, calc(100vw - 32px)) !important;
    padding: 34px !important;
}

.server-add-page h1 {
    font-size: clamp(46px, 6vw, 76px) !important;
    margin-bottom: 14px !important;
}

.server-add-page > p {
    max-width: 850px;
    margin-bottom: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.65;
}

.server-add-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-top: 26px !important;
}

.server-add-form .form-row {
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .16);
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.07), transparent 34%),
        rgba(2, 6, 23, .34);
}

.server-add-form .form-row label {
    display: block;
    margin-bottom: 9px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .2px;
}

.server-add-form .form-row input,
.server-add-form .form-row select,
.server-add-form .form-row textarea {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.24);
    background: rgba(2,6,23,.66);
    color: #f8fafc;
    padding: 13px 15px;
    font-weight: 850;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.server-add-form .form-row textarea {
    min-height: 150px;
    resize: vertical;
}

.server-add-form .form-row input:focus,
.server-add-form .form-row select:focus,
.server-add-form .form-row textarea:focus {
    border-color: rgba(134,239,172,.55);
    background: rgba(2,6,23,.78);
    box-shadow: 0 0 0 4px rgba(34,197,94,.10);
}

.server-add-form .form-row input[type="file"] {
    min-height: 54px;
    padding: 13px;
    border-style: dashed;
    cursor: pointer;
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.10), transparent 34%),
        rgba(2,6,23,.58);
}

.server-add-form .form-row small {
    display: block !important;
    margin-top: 10px !important;
    color: #94a3b8 !important;
    font-size: 12px;
    line-height: 1.55 !important;
    font-weight: 800 !important;
}

/* Alanları mantıklı sıraya ve genişliğe al */
.server-add-form .form-row:nth-of-type(1) {
    order: 1;
}

.server-add-form .form-row:nth-of-type(2) {
    order: 2;
}

.server-add-form .form-row:nth-of-type(3) {
    order: 3;
}

.server-add-form .form-row:nth-of-type(6) {
    order: 4;
}

.server-add-form .form-row:nth-of-type(12) {
    order: 5;
}

.server-add-form .form-row:nth-of-type(4) {
    order: 6;
    grid-column: 1 / -1;
}

.server-add-form .form-row:nth-of-type(5) {
    order: 7;
    grid-column: 1 / -1;
}

.server-add-form .form-row:nth-of-type(7) {
    order: 8;
    grid-column: 1 / -1;
}

.server-add-form .form-row:nth-of-type(8) {
    order: 9;
    grid-column: 1 / -1;
}

.server-add-form .form-row:nth-of-type(9) {
    order: 10;
}

.server-add-form .form-row:nth-of-type(10) {
    order: 11;
}

.server-add-form .form-row:nth-of-type(11) {
    order: 12;
}

.server-add-form .form-row:nth-of-type(13) {
    order: 13;
}

/* Açıklama, medya ve etiket alanları daha premium görünsün */
.server-add-form .form-row:nth-of-type(4),
.server-add-form .form-row:nth-of-type(5),
.server-add-form .form-row:nth-of-type(7),
.server-add-form .form-row:nth-of-type(8) {
    background:
        radial-gradient(circle at 0% 0%, rgba(56,189,248,.08), transparent 34%),
        rgba(2,6,23,.38);
}

/* Form içindeki işlem butonları */
.server-add-form .actions {
    order: 99;
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-top: 4px !important;
    padding: 20px !important;
    border-radius: 22px;
    border: 1px solid rgba(34,197,94,.18);
    background: rgba(2,6,23,.38);
}

.server-add-form .actions button,
.server-add-form .actions .button {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 1000;
}

.server-add-form .actions button[type="submit"] {
    min-width: 260px;
    box-shadow: 0 16px 38px rgba(34,197,94,.20);
}

/* Slot kutusunu daha belirgin yap */
.server-add-page .server-slot-box {
    margin-top: 24px !important;
    margin-bottom: 28px !important;
    padding: 22px !important;
    border-radius: 24px !important;
}

.server-add-page .server-slot-box strong {
    font-size: 22px;
}

.server-add-page .server-slot-box p {
    font-size: 14px;
}

/* Dosya seç butonunun çirkinliğini biraz yumuşat */
.server-add-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 12px;
    background: #22c55e;
    color: #052e16;
    padding: 9px 13px;
    font-weight: 1000;
    cursor: pointer;
}

.server-add-form select option {
    color: #0f172a;
}

/* Mobil */
@media (max-width: 860px) {
    .server-add-page {
        width: min(100% - 18px, 1120px) !important;
        padding: 22px !important;
    }

    .server-add-form {
        grid-template-columns: 1fr !important;
    }

    .server-add-form .form-row {
        grid-column: 1 / -1 !important;
    }

    .server-add-form .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .server-add-form .actions button,
    .server-add-form .actions .button {
        width: 100%;
    }
}

/* =========================================================
   SERVER OWNERSHIP VERIFY PAGE
========================================================= */

.ownership-page {
    width: min(980px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
    padding: 34px;
    border-radius: 30px;
    border-color: rgba(34, 197, 94, .24);
    background:
        radial-gradient(circle at 0% 0%, rgba(34,197,94,.14), transparent 34%),
        linear-gradient(145deg, rgba(15,23,42,.96), rgba(2,6,23,.90));
}

.ownership-page h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: .95;
    letter-spacing: -2px;
    margin-bottom: 14px;
}

.ownership-intro {
    max-width: 820px;
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 16px;
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.ownership-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(2,6,23,.42);
}

.ownership-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #86efac;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.ownership-card h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
}

.ownership-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.ownership-token {
    margin: 12px 0;
    padding: 14px;
    border-radius: 16px;
    color: #052e16;
    background: #22c55e;
    font-size: 24px;
    font-weight: 1000;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-all;
}

.ownership-server-box {
    margin: 20px 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(34,197,94,.22);
    background: rgba(34,197,94,.08);
}

.ownership-server-box span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.ownership-server-box strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 22px;
}

.ownership-server-box small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-weight: 800;
}

.ownership-alert {
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    color: #fecaca;
    background: rgba(127,29,29,.28);
    border: 1px solid rgba(248,113,113,.28);
}

.ownership-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #fecaca;
    font-size: 16px;
}

.ownership-alert p {
    margin: 0;
    color: #fecaca;
}

.ownership-note {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .ownership-page {
        width: min(100% - 18px, 980px);
        padding: 22px;
    }

    .ownership-grid {
        grid-template-columns: 1fr;
    }
}
