:root {
    --bg: #f4f6f9;
    --text: #1a1a2e;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --accent: #4a6cf7;
    --accent-soft: #eef2ff;
    --card: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 30px rgba(74,108,247,0.15);
    --header-bg: #ffffff;
    --divider: #f0f0f0;
    --google-btn-bg: #ffffff;
    --google-btn-shadow: 0 6px 24px rgba(0,0,0,0.1);
    --footer-bg: #eaf3ff;
}

[data-theme="dark"] {
    --bg: #0f1419;
    --text: #e5e7eb;
    --text-soft: #9ca3af;
    --border: #2d3348;
    --accent: #6c8cff;
    --accent-soft: #1e2a4a;
    --card: #1a1f2e;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 10px 30px rgba(108,140,255,0.2);
    --header-bg: #1a1f2e;
    --divider: #2d3348;
    --google-btn-bg: #1a1f2e;
    --google-btn-shadow: 0 6px 24px rgba(108,140,255,0.25), 0 0 0 1px rgba(108,140,255,0.3);
    --footer-bg: #182536;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: url('../img/bg.png') var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    border-radius: 14px;
    max-width: 1152px;
    margin: 24px auto 24px auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--bg);
    border: 1px solid var(--border);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
}

.greeting {
    margin-bottom: 24px;
}

.greeting p {
    color: var(--text-soft);
    font-size: 14px;
}

.greeting .time {
    color: var(--accent);
    font-weight: 500;
}

/* GOOGLE BUTTON — prominent */
.google-section {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--google-btn-bg);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 16px 32px;
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    box-shadow: var(--google-btn-shadow);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.google-btn:hover {
    box-shadow: 0 12px 32px rgba(66,133,244,0.25);
    border-color: #4285f4;
}

.google-btn:hover::before {
    opacity: 0.08;
}

.google-btn svg {
    position: relative;
    flex-shrink: 0;
}

.google-btn span {
    position: relative;
}

.google-btn .arrow {
    margin-left: 8px;
    opacity: 0.4;
    transition: all 0.25s ease;
    position: relative;
}

.google-btn:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-count {
    color: var(--text-soft);
    font-size: 12px;
}

.section-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
}

.card-desc {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ef4444;
    border-radius: 50%;
    width: 16px;
    height: 16px;
}
  
/* =====================================================
                FOOTER / OTHER RESOURCES
===================================================== */

.resources {
    margin-top: 40px;
    padding: 22px 28px;
    background: var(--footer-bg);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    align-items: center;
    gap: 25px;
}

.resources-intro {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resources-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.resources-title {
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 4px;
}

.resources-description {
    color: var(--text-soft);
    font-size: 12px;
}

.resource-link {
    padding-left: 25px;
    border-left: 1px solid var(--border);
}

.resource-link a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.resource-link p {
    margin: 5px 0 0;
    color: var(--text-soft);
    font-size: 11px;
}
        
/* =====================================================
                        COPYRIGHT
===================================================== */

.copyright {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 11px;
}

@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .widgets { grid-template-columns: 1fr; }
    header { padding: 14px 20px; }
    .logo-text span { display: none; }
    .google-btn { padding: 14px 24px; font-size: 15px; }
}
