/* styles.css */
/* General body styles from the HTML, providing the base theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #1c1c1e; /* Dark background */
    color: #ffffff; /* Default text color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px; /* Padding for smaller screens */
    box-sizing: border-box;
}

/* Container for the main content */
.container {
    background-color: #2d2d2d; /* Dark grey container background */
    border-radius: 12px; /* Rounded corners */
    padding: 25px 30px; /* Inner padding */
    text-align: center;
    width: 100%; /* Full width on small screens */
    max-width: 420px; /* Maximum width of the container */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    border: 1px solid #444; /* Subtle border */
}

/* Logo styling */
.logo {
    display: block;
    margin: 0 auto 25px auto; /* Centered with bottom margin */
    max-width: 80px; /* Max width for the logo */
}

/* Main heading style */
h1 {
    color: #f5f5f7; /* Off-white color for heading */
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Default paragraph style */
p {
    color: #e0e0e0; /* Lighter grey for paragraph text */
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Smaller text style, e.g., for disclaimers */
p.small-text {
    font-size: 13px;
    color: #aaa; /* Dimmed color for small text */
    margin-top: 25px;
}

/* Loading spinner animation and style */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2); /* Base border for spinner */
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circular shape */
    border-top-color: #007aff; /* Highlight color for the spinning part (Apple blue) */
    animation: spin 1s linear infinite; /* Spin animation */
    margin: 20px auto; /* Centered with vertical margin */
}

/* Keyframes for the spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wallet button styling (Apple/Google Wallet buttons) */
.wallet-button {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    padding: 0; /* Padding is handled by image margin/padding if needed */
    margin: 12px auto; /* Centered with vertical margin */
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 280px; /* Max width for these buttons */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.2s ease, transform 0.1s ease; /* Smooth transitions */
}

.wallet-button:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly lighter on hover */
}

.wallet-button:active {
    transform: scale(0.98); /* Slight shrink effect on click */
}

/* Image inside wallet buttons */
.wallet-button img {
    display: block;
    width: 100%; /* Image takes full width of its container within button */
    max-width: 200px; /* Actual max size of the badge image */
    height: auto;
    object-fit: contain;
    margin: 10px auto; /* Center image within button */
    padding: 5px; /* Optional padding around the image */
}

/* General action button styling (e.g., "Back to Options") */
.action-button {
    background-color: #007aff; /* Apple blue background */
    color: white;
    padding: 12px 25px; /* Padding */
    border: none; /* No border */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px; /* Top margin */
    transition: background-color 0.2s ease; /* Smooth background transition */
}

.action-button:hover {
    background-color: #005ecb; /* Darker blue on hover */
}

/* Styling for messages (success/error) */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 15px;
}

.message.error {
    background-color: rgba(255, 59, 48, 0.15); /* Apple red, semi-transparent */
    color: #ff3b30; /* Apple red text */
    border: 1px solid rgba(255, 59, 48, 0.3); /* Subtle red border */
}

.message.success {
    background-color: rgba(52, 199, 89, 0.15); /* Apple green, semi-transparent */
    color: #34c759; /* Apple green text */
    border: 1px solid rgba(52, 199, 89, 0.3); /* Subtle green border */
}
