/* ============================================================
   UNIT9 IT Hub - Styles
   Matching UNIT9 Design System
   ============================================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* === LOGIN SCREEN (Welcome Page Style) === */
.login-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.welcome-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 100px;
}

.welcome-card > .logo,
.welcome-card > h1,
.welcome-card > .welcome-content {
    background: #ffffff;
    color: #000000;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.welcome-card {
    background: transparent;
}

.welcome-card .logo,
.welcome-card h1,
.welcome-card .welcome-content {
    background: transparent;
}

.login-screen .welcome-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-screen .welcome-card > *:first-child {
    background: #ffffff;
    color: #000000;
    border-radius: 20px 20px 0 0;
    padding: 48px 48px 0 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 2px solid #333;
    border-bottom: none;
}

.login-screen .welcome-card > h1 {
    background: #ffffff;
    color: #000000;
    padding: 0 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border-left: 2px solid #333;
    border-right: 2px solid #333;
    font-size: 2.2em;
    font-weight: 300;
    margin: 0;
}

.login-screen .welcome-card > .welcome-content {
    background: #ffffff;
    color: #000000;
    border-radius: 0 0 20px 20px;
    padding: 8px 48px 48px 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #333;
    border-top: none;
}

@media (max-width: 640px) {
    .login-screen .welcome-card > *:first-child {
        padding: 32px 24px 0 24px;
        border-radius: 15px 15px 0 0;
    }
    .login-screen .welcome-card > h1 {
        padding: 0 24px;
    }
    .login-screen .welcome-card > .welcome-content {
        padding: 8px 24px 32px 24px;
        border-radius: 0 0 15px 15px;
    }
}

/* === LOGO === */
.logo {
    margin-bottom: 0;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.header .logo img,
.header-logo {
    max-width: none !important;
    height: 32px !important;
    width: auto !important;
}

/* === WELCOME CONTENT === */
.welcome-content p {
    margin-bottom: 24px;
    color: #333333;
    line-height: 1.5;
}

.login-section {
    margin: 32px 0;
}

/* === BUTTONS === */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000;
}

.button-primary:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Google Sign In Button SVG */
.button-primary svg {
    fill: #ffffff;
}

.button-primary:hover svg {
    fill: #000000;
}

/* === INFO BOX === */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.info-box p {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* === HEADER === */
.header {
    background: #000000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    margin-bottom: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
}

@media (max-width: 640px) {
    .user-name {
        display: none;
    }
}

.signout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.signout-btn:hover {
    background: #c82333;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 40px 0 100px;
    min-height: calc(100vh - 200px);
}

/* === DASHBOARD CARD === */
.dashboard-card {
    background: #ffffff;
    color: #000000;
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
}

.dashboard-header {
    background: #000000;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid #333;
    border-radius: 15px 15px 0 0;
}

.dashboard-header h1 {
    font-size: 3em;
    font-weight: 300;
    margin-bottom: 10px;
    color: #ffffff;
}

.dashboard-header p {
    opacity: 0.9;
    font-size: 1.5em;
    margin: 0;
}

/* === HUB SECTION === */
.hub-section {
    margin-bottom: 48px;
}

.hub-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

/* === TILES GRID (Policies Grid Style) === */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .tiles-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === TILE CARD (Policy Card Style) === */
.tile-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 24px;
    color: #000000;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.tile-card:hover {
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.tile-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.tile-excerpt {
    color: #666666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.tile-actions {
    margin-top: auto;
}

.tile-actions .button {
    width: 100%;
    justify-content: center;
}

/* === FOOTER === */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.footer-copyright {
    color: #ffffff;
    font-size: 14px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer {
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* === HUB SCREEN === */
.hub-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hub-screen .main-content {
    flex: 1;
}
