/* Microsoft Fluent Design Clone - Support Page */

:root {
    --ms-blue: #0067b8;
    --ms-blue-hover: #005da6;
    --text-primary: #242424;
    --text-secondary: #616161;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f2f1;
    --border-color: #e0e0e0;
    --font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --focus-ring: 2px solid #000;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.ms-header {
    width: 100%;
    height: 54px;
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 0 10px;
}

.logo-link:hover {
    outline: var(--focus-ring);
    outline-offset: -2px;
}

.ms-logo {
    width: 108px;
    height: 23px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 2px solid var(--text-primary);
    padding-left: 12px;
    line-height: 1.2;
}

.main-nav {
    margin-left: 20px;
    height: 100%;
}

.main-nav ul {
    display: flex;
    height: 100%;
}

.main-nav li {
    height: 100%;
}

.main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-primary);
}

.main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-right {
    gap: 20px;
}

.header-link {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.sign-in {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.sign-in:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section */
.hero {
    background-color: var(--bg-primary);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.search-container {
    max-width: 768px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--ms-blue);
    border-radius: 24px;
    padding: 0 20px;
    height: 48px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.search-box:focus-within {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    flex-shrink: 0;
}

/* Product Grid */
.product-grid-section {
    padding: 24px 20px 64px;
    background-color: var(--bg-primary);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 8px;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.product-card:hover {
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-card span {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-blue);
}

.product-card:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Pseudo-icons using gradients as placeholders for premium feel */
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Real icons inserted directly via img/svg tags */

/* Content Cards Section */
.content-cards-section {
    background-color: var(--bg-secondary);
    padding: 64px 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.content-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 200px;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex: 1;
}

.ms-link {
    color: var(--ms-blue);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.ms-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
.ms-footer {
    background-color: #f2f2f2;
    padding: 36px 5% 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 11px;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
}

.footer-locale {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
}

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

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-legal a:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
}

/* Windows protocol link fallback */
.ms-action-link { color: #0067b8; font-weight: 500; cursor: default; }

/* Chat Widget Styles */
.ms-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.ms-chat-button {
    background-color: #0067b8;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.ms-chat-button:hover {
    background-color: #005da6;
    transform: translateY(-2px);
}

.ms-chat-popup {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 380px;
    max-height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
}

.ms-chat-popup.open {
    display: flex;
}

.ms-chat-header {
    background-color: #0067b8;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ms-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.ms-chat-body {
    padding: 20px;
    overflow-y: auto;
}

.ms-chat-body p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

.ms-form-group {
    margin-bottom: 16px;
}

.ms-form-group label {
    display: block;
    font-size: 14px;
    color: #000;
    margin-bottom: 6px;
}

.ms-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #666;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.ms-form-control:focus {
    outline: 2px solid #0067b8;
    border-color: transparent;
}

.ms-phone-group {
    display: flex;
    gap: 10px;
}

.ms-phone-code {
    width: 40%;
}

.ms-phone-number {
    width: 60%;
}

.ms-submit-btn {
    width: 100%;
    background-color: #0067b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.ms-submit-btn:hover {
    background-color: #005da6;
}

@media (max-width: 480px) {
    .ms-chat-popup {
        width: 320px;
        right: -10px;
    }
}
