/* History.css */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f6f8ff;
    color:#333;
}

header{
    background:#0b1033;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    flex-wrap:wrap;
}

.logo h1{
    font-size:42px;
    font-weight:700;
}

.logo span{
    color:#ffb400;
}

.logo p{
    margin-top:6px;
    color:#ddd;
    font-size:15px;
}

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:18px;
}

.top-links{
    display:flex;
    gap:15px;
}

.top-links a{
    color:rgb(252, 244, 244);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.top-links a:hover{
    color:#ffb400;
}

.search-box{
    display:flex;
}

.search-box input{
    width:280px;
    padding:14px;
    border:none;
    outline:none;
    border-radius:12px 0 0 12px;
}

.search-box button{
    padding:14px 28px;
    border:none;
    color:#fff;
    cursor:pointer;
    border-radius:0 12px 12px 0;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

.navbar{
    background:#16215f;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    padding:18px 28px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

.history-section{
    width:92%;
    margin:50px auto;
}

.history-section h2{
    text-align:center;
    font-size:42px;
    color:#1f2a7d;
    margin-bottom:40px;
}

.place-grid{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.place-card{
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.3s;
}

.place-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.18);
}

.place-card figure{
    width:360px;
    flex-shrink:0;
}

.place-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.card-content{
    flex:1;
    padding:35px;
}

.card-content h3{
    color:#1f2a7d;
    font-size:34px;
    margin-bottom:18px;
}

.card-content p{
    margin:10px 0;
    line-height:1.8;
    font-size:17px;
}

.card-content strong{
    color:#070412;
}

.card-content .history-description,
.card-content .full-history,
.card-content .historical-significance {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.card-content button{
    margin-top:18px;
    border:none;
    padding:14px 30px;
    border-radius:12px;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    transition:.3s;
}

.card-content button:hover{
    transform:translateY(-3px);
}

footer{
    background:#0b1033;
    color:#fff;
    text-align:center;
    padding:35px;
    margin-top:50px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    color:#ddd;
    margin:6px 0;
}

@media(max-width:900px){

header{
    flex-direction:column;
    text-align:center;
    gap:20px;
}

.header-right{
    align-items:center;
}

.place-card{
    flex-direction:column;
}

.place-card figure,
.place-card img{
    width:100%;
    height:260px;
}

.card-content{
    padding:25px;
    text-align:center;
}

.navbar{
    flex-direction:column;
}

.navbar a{
    border-bottom:1px solid rgba(255,255,255,.1);
}

.search-box{
    width:100%;
}

.search-box input{
    width:100%;
}
}

@media(max-width:600px){
    header{
        padding:18px 16px;
    }

    .logo h1{
        font-size:clamp(24px, 7vw, 32px);
    }

    .logo p{
        font-size:13px;
    }

    .top-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .nav-auth-area{
        align-items:center !important;
        margin:0 auto !important;
    }

    .history-section{
        width:95%;
        margin:25px auto;
    }

    .history-section h2{
        font-size:clamp(24px, 6vw, 32px);
        margin-bottom:24px;
    }

    .place-card figure,
    .place-card img{
        height:200px;
    }

    .card-content{
        padding:18px 14px;
    }

    .card-content h3{
        font-size:clamp(20px, 5.5vw, 26px);
    }

    .card-content p{
        font-size:15px;
        line-height:1.6;
    }

    .card-content button{
        width:100%;
        max-width:250px;
    }
}

/* Profile section only */
.nav-auth-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-left: auto;
}

/* User icon + Profile name */
.nav-profile-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* User icon */
.nav-profile-icon i {
    color: #ffb400;
    font-size: 22px;
}

/* Profile and Logout container */
.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Profile and Logout links */
.profile-btn,
.logout-btn {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Hover */
.profile-btn:hover,
.logout-btn:hover {
    color: #ffb400 !important;
}
