/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');


/* Base styles */
body {
    font-family: 'Tinos', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto 1fr;
    gap: 20px;
    padding: 20px;
} */

/* стандарное отображение */
h1 { text-align: center; margin-top: 30px; font-size: 2rem; }
.profile-card {
    background: #fff;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.profile-img { width: 100px; height: 100px; border-radius: 50%; }
.profile-name { font-size: 1.6rem; font-weight: bold; margin: 10px 0 5px; }
.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.badge {  padding: 4px 8px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; color: #fff; }
.badge-premium { display: none; background-color: #cfae50; color: #000; }
.badge-verified { display: none; background-color: #28a745; }
.profile-desc { font-size: 1rem; color: #333; margin-bottom: 15px; }
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}
.stat { text-align: center; flex: 1 1 50%; margin-bottom: 15px; }
.stat span { display: block; font-weight: bold; font-size: 1.2rem; }
.welcome { text-align: center; max-width: 600px; margin: 20px auto; font-size: 1.1rem; color: #333; }

/* Вкладки */
.tabs {
    max-width: 900px;
    margin: 30px auto;
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}
.tab-buttons button {
    /* flex: 1; */
    flex: 1 1 50%;
    padding: 15px;
    font-size: 1rem;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.tab-buttons button:hover { background: #ececec; }
.tab-buttons .active { background: #b3c6dc; font-weight: bold; }
.tab-content { padding: 20px; display: none; }
.tab-content.active { display: block; }

/* Карточки контента */
.review, .deal, .ad {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.review:last-child, .deal:last-child, .ad:last-child { border-bottom: none; }
.review strong, .deal strong, .ad strong { display: block; font-size: 1.1rem; }

/* Блок настроек */
.settings-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.settings-form input, .settings-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.settings-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.settings-form button:hover { background: #2f66b3; }
.settings-form input[type="text"],.settings-form textarea{width:100%;padding:10px 12px;margin-top:5px;margin-bottom:15px;border:1px solid #ddd;border-radius:8px;font-size:1rem;box-sizing:border-box;transition:border-color .3s,box-shadow .3s;}.settings-form input[type="text"]:focus,.settings-form textarea:focus{outline:none;border-color:#3a7bd5;box-shadow:0 0 0 3px rgba(58,123,213,.2);}.settings-form textarea{resize:vertical;}
.avatar-wrapper{margin-top: 10px; position:relative;width:80px;height:80px;border-radius:50%;overflow:hidden;cursor:pointer;display:inline-block;}.avatar-wrapper img{width:100%;height:100%;object-fit:cover;border-radius:50%;}.avatar-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;border-radius:50%;opacity:0;transition:opacity .3s;}.avatar-wrapper:hover .avatar-overlay{opacity:1;}


/* объявления  */
#ad .ad { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #ddd; background-color: #fff; border-radius: 8px; margin-bottom: 8px; transition: background 0.2s; }
#ad .ad:hover { background-color: #f9f9f9; }
.ad-avatar { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ad-info { flex: 1; min-width: 0; }
.ad-info strong { display: block; font-size: 1.05rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-info div { font-size: 0.9rem; color: #555; }


/* контакты */

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f9f9f975;
    padding: 8px 12px;
    border-radius: 6px;
}

.contact img {
    width: 24px;
    height: 24px;
}

.contact strong {
    flex: 1;
    text-transform: capitalize;
}

.contact a.button {
    padding: 5px 10px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.contact a.button:hover {
    background-color: #45a049;
}


.ad-actions {
    /* display: flex; */
    gap: 8px;
    margin-top: 8px;
}

.ad-actions button {
    padding: 5px 10px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Кнопка UP */
.ad-actions .btn-up {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

/* Редактировать */
.ad-actions .btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Удалить */
.ad-actions .btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Hover */
.ad-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Active */
.ad-actions button:active {
    transform: translateY(0);
    box-shadow: none;
}
    

/* Кнопки premium/verified/pinned */
.settings-buttons{margin-top:12px;flex-wrap:wrap}.settings-buttons button{padding:6px 10px;border:none;border-radius:6px;font-size:12px;color:#fff;cursor:pointer;transition:all .25s ease}.settings-buttons .btn-verify:hover{background-color:#2ecc71}.settings-buttons .btn-premium:hover{background:linear-gradient(135deg,#ffb340,#e38d05)}.settings-buttons .btn-pin:hover{background:linear-gradient(135deg,#4f97ff,#2f6fe0)}.settings-buttons button:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 4px 10px rgba(0,0,0,.15)}.settings-buttons button:active{transform:translateY(0) scale(.98);box-shadow:none}


/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
}

footer nav ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

footer nav ul li {
    display: inline;
    margin: 0 10px;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer nav ul li a:hover {
    opacity: 0.7;
}

/* Медиазапросы для планшетов и десктопов */
@media (min-width: 768px) {
    h1 { margin-top: 30px; font-size: 2rem; }
    .profile-card {
        max-width: 1200px;
        margin: 20px auto;
        padding: 20px;
    }
    .profile-img { width: 100px; height: 100px; }
    .profile-name { font-size: 1.6rem; }
    .profile-desc { font-size: 1rem; }
    .stat { flex: 1; margin-bottom: 0; }
    .stat span { font-size: 1.2rem; }
    .welcome { max-width: 600px; margin: 20px auto; font-size: 1.1rem; }
    .tabs { max-width: 900px; margin: 30px auto; }
    .tab-buttons button { flex: 1; padding: 15px; font-size: 1rem; }
    .tab-content { padding: 20px; }
    #ad .ad { flex-direction: row; text-align: left; }
    .ad-actions { justify-content: flex-end; }
    .contact { flex-direction: row; justify-content: flex-start; }
    footer nav ul {
        flex-direction: row;
        gap: 20px;
    }
}