/* ARKAD vCard PWA - Mobile-First Responsive Styles */

:root {
    --arkad-black: #0F1112;
    --arkad-dark-gray: #262626;
    --arkad-light-gray: #EEECE9;
    --arkad-yellow: #FFCE5C;
    --arkad-white: #FFFFFF;
    --circuit-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--arkad-black);
    color: var(--arkad-white);
    position: relative;
}

/* Circuit Board Background */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.circuit-line {
    position: absolute;
    background: var(--circuit-color);
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--arkad-white);
    border-radius: 50%;
    opacity: 0.5;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Screens */
.screen {
    width: 100%;
    max-width: 400px;
}

.screen.hidden {
    display: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(255, 206, 92, 0.3));
}

h1 {
    font-family: 'Michroma', monospace;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Card Container */
.card {
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.95), rgba(15, 17, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.card-title {
    font-family: 'Michroma', monospace;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--arkad-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--arkad-white);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--arkad-yellow);
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--arkad-yellow), #E6B84D);
    color: var(--arkad-black);
    box-shadow: 0 4px 16px rgba(255, 206, 92, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--arkad-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    padding: 10px 20px;
}

/* Error Message */
.error-message {
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 8px;
    color: #E57373;
    font-size: 14px;
    text-align: center;
}

.error-message.hidden {
    display: none;
}

/* Business Card Container */
.business-card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
}

.business-card-flipper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586; /* Standard business card ratio */
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    min-height: 500px;
}

.business-card-container.flipped .business-card-flipper {
    transform: rotateY(180deg);
}

.business-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Front Side - Arthur style */
.business-card-front {
    background: var(--arkad-black);
    display: grid;
    grid-template-columns: 40% 60%;
    padding: 0;
}

/* Circuit Graphics on Card (left side) */
.card-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.card-logo svg {
    width: 100%;
    height: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px 40px 10px;
    background: var(--arkad-black);
}

.card-name {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.card-role {
    font-family: 'Roboto', sans-serif;
    color: var(--arkad-white);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.card-divider {
    display: none;
}

.card-info {
    margin-top: auto;
}

.info-row {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--arkad-white);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.info-icon {
    display: none;
}

.card-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

/* Back Side */
.business-card-back {
    background: var(--arkad-black);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.qr-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.qr-title {
    font-family: 'Michroma', monospace;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 25px;
    color: var(--arkad-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#qrcode {
    background: var(--arkad-white);
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

#qrcode canvas,
#qrcode img {
    display: block;
    margin: 0 auto;
}

.qr-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .logo {
        width: 150px;
    }

    h1 {
        font-size: 28px;
    }

    .card {
        padding: 40px;
    }

    .business-card-container {
        max-width: 600px;
    }

    .business-card-flipper {
        min-height: 500px;
    }

    .card-name {
        font-size: 40px;
    }

    .card-role {
        font-size: 20px;
    }

    .info-row {
        font-size: 18px;
    }

    .qr-title {
        font-size: 18px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .business-card-container {
        max-width: 700px;
    }

    .business-card-flipper {
        min-height: 550px;
    }

    .card-name {
        font-size: 48px;
    }

    .card-role {
        font-size: 22px;
    }

    .info-row {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}
