@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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


body{
    background:#121212;
    color:#e0e0e0;
}

header{
    background:#1e1e1e;
    padding:15px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 4px 20px rgba(0,0,0,.5);
    position: relative;
}

.logo{
    font-size:22px;
    font-weight:bold;
    color:#bb86fc;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:25px;
}

.nav-links a{
    color:#ccc;
    text-decoration:none;
    font-size:16px;
    transition:0.3s;
}

.nav-links a:hover{
    color:#bb86fc;
}

.logout{
    background:#bb86fc;
    color:#121212;
    padding:8px 16px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
}

.logout:hover{
    background:#9b59b6;
}

#burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div{
    width:25px;
    height:3px;
    background:#ccc;
    transition:0.3s;
}

.hero{
    height:70vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:0 20px;
    background:
        linear-gradient(to bottom, rgba(18,18,18,.7), rgba(18,18,18,1)),
        url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f") center/cover;
}

.hero h1{
    font-size:48px;
    color:#bb86fc;
    margin-bottom:15px;
}

.hero p{
    font-size:20px;
    max-width:600px;
    color:#ccc;
}


.about{
    padding:80px 20px;
    max-width:1000px;
    margin:auto;
    text-align:center;
}

.about h2{
    font-size:36px;
    margin-bottom:20px;
    color:#bb86fc;
}

.about p{
    font-size:18px;
    line-height:1.6;
    color:#aaa;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    width: 370px;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0 10px;
}

.card h3 a {
    color:#bb86fc;
    text-decoration: none;
    font-size: 18px;
}

.card h3 a:hover {
    color:#8759be;
}

.card p {
    padding: 0 10px 20px;
    color: #cccccc;
    font-size: 14px;
}


footer{
    text-align:center;
    padding:30px 20px;
    background:#1e1e1e;
    color:#777;
}

footer .footer-content p{
    margin:5px 0;
}

footer .social-links{
    margin-top:10px;
}

footer .social-links a{
    color:#bb86fc;
    margin:0 10px;
    font-size:18px;
    transition:0.3s;
    text-decoration:none;
}

footer .social-links a:hover{
    color:#fff;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: #1e1e1e;
    min-width: 150px;
    border-radius: 8px;
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: #bb86fc;
    color: #121212;
}




#word {
  padding: 10px;
  width: 250px;
  margin-bottom: 10px;
}

button {
  padding: 10px;
  margin: 5px;
  cursor: pointer;
}

#result {
  margin-top: 15px;
  font-weight: bold;
}

@media(min-width:951px){
    .dropdown:hover .dropdown-content {
        display: flex;
        flex-direction: column;
    }
}

/* ── iPad Air & similar tablets: 750px – 920px ── */
@media (min-width: 750px) and (max-width: 950px) {
    header {
        padding: 15px 20px;
    }

    #burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        flex-direction: column;
        background: #1e1e1e;
        padding: 10px;
        border-radius: 8px;
        gap: 10px;
        z-index: 999;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 15px;
        border-top: 1px solid #333;
    }

    /* Stats row → two per row then one */
    .dashboard-stats {
        padding: 0 20px;
        margin-bottom: 28px;
    }

    .dashboard-stats-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .stat-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    /* Progress section */
    .dashboard-progress {
        padding: 0 20px;
    }

    .dashboard-progress-inner {
        grid-template-columns: 1fr;
    }

    .progress-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Feature cards: 2 per row */
    .features {
        padding: 30px 20px;
        gap: 16px;
    }

    .features .card {
        width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }

    /* Hero */
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 17px;
    }
}

@media(max-width:749px){
    header{
        flex-wrap:wrap;
        gap:15px;
    }

    #burger {
        display: flex;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:70px;
        right:0;
        width:200px;
        flex-direction: column;
        background:#1e1e1e;
        padding:10px;
        border-radius:8px;
        gap:10px;
        z-index:999;
    }

    .nav-links.nav-active{
        display:flex;
    }

    .nav-links a{
        padding:15px;
        border-top:1px solid #333;
    }

    .dropdown-content{
        position: relative;
        top:0;
        left:0;
        min-width:auto;
        padding-left:20px;
    }

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

    .hero h1{
        font-size:36px;
    }

    .dashboard-stats-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .stat-card {
        min-width: 0;
        max-width: none;
    }

    .dashboard-stats {
        padding: 0 20px;
        margin-bottom: 32px;
    }
    .dashboard-progress {
        padding: 0 20px;
    }
    .dashboard-progress-inner {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-inner {
        flex-direction: column;
        align-items: center;
    }
    .dashboard-stats .stat-card {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }
    .dashboard-stats .stat-card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .dashboard-stats .stat-card-icon {
        margin-bottom: 6px;
    }
    .dashboard-stats .goal-bar {
        width: 100%;
        max-width: min(100%, 320px);
        margin-left: auto;
        margin-right: auto;
    }
    .progress-grid {
        grid-template-columns: 1fr 1fr;
    }
}


.dashboard-stats {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.dashboard-stats-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stat-card {
    flex: 1 1 280px;
    max-width: 340px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 22px 22px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid #333;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease;
}

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

/* ── Purple Theme for Dashboard Emojis/Icons ── */
.stat-card-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(187, 134, 252, 0.1);    /* Translucent purple background */
    color: #bb86fc;                          /* Pure theme purple color */
    border-radius: 12px;
    border: 1px solid rgba(187, 134, 252, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.15); /* Soft purple glow */
    transition: all 0.3s ease;
}

/* Make icons pop even more when hovering over the card */
.stat-card:hover .stat-card-icon {
    background: rgba(187, 134, 252, 0.2);
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.35);
    transform: scale(1.05);
}

.stat-card-body {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #bb86fc;
    line-height: 1.2;
}

.stat-value-mono {
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 14px;
    color: #ccc;
    font-weight: bold;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-hint {
    font-size: 12px;
    color: #888;
    line-height: 1.45;
    margin-top: 10px;
}

.goal-bar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
}

.goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #bb86fc, #9b59b6);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.stat-usage .stat-value {
    color: #bb86fc; /* Turned API counter color into purple theme to match */
}

.dashboard-progress {
    max-width: 1100px;
    margin: 0 auto 34px;
    padding: 0 40px;
}

.dashboard-progress-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.progress-card {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    padding: 20px;
}

.progress-card h3 {
    color: #bb86fc;
    margin-bottom: 14px;
    font-size: 20px;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
}

.progress-item {
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.progress-value {
    display: block;
    color: #e0e0e0;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.1;
}

.progress-label {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 6px;
}

.badge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-badge {
    background: #222;
    border: 1px solid #333;
    border-left: 3px solid #bb86fc;
    border-radius: 8px;
    padding: 10px 12px;
}

.user-badge-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
}

/* Keeps badge list emojis matched to layout */
.user-badge-title span {
    filter: drop-shadow(0 0 2px rgba(187, 134, 252, 0.5)) hue-rotate(45deg);
}

.user-badge p {
    margin-top: 6px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.no-badges {
    color: #aaa;
    font-size: 14px;
}

/* —— Daily Tasks —— */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #222;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: background 0.3s ease;
}

.task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #bb86fc;
}

.task-item label {
    color: #e0e0e0;
    font-size: 14px;
    flex-grow: 1;
    font-weight: bold;
}

.task-item.completed label {
    text-decoration: line-through;
    color: #888;
}

.task-item.completed {
    opacity: 0.7;
    background: #1a1a1a;
}

.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #bb86fc, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
}

.floating-chat-btn:hover {
    background: linear-gradient(135deg, #a76dfc, #6d28d9);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
}

/* ─────────────────────────────────────────────
   DET PRACTICE BUTTON IN HEADER NAV
───────────────────────────────────────────── */
.det-nav-btn {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.45) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    animation: detNavGlow 3s ease infinite !important;
}

.det-nav-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.75) !important;
    color: #ffffff !important;
}

@keyframes detNavGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* SAT PRACTICE BUTTON IN HEADER NAV */
.sat-nav-btn {
    background: linear-gradient(135deg, #58cc02, #1cbf62) !important;
    color: #071b0c !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 0 #11853d, 0 0 16px rgba(88, 204, 2, 0.35) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.sat-nav-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 0 #11853d, 0 0 26px rgba(88, 204, 2, 0.6) !important;
    color: #071b0c !important;
}
