/* ==================================================
   CodeReplacements.com - Amember Custom Theme CSS
   Theme Name: codereplacements
   Version: 1.0
   Created: November 18, 2025
   Description: Custom theme matching main website design
   ================================================== */

/* ------------------------------------- 
   OVERRIDE AMEMBER DEFAULTS
------------------------------------- */

/* Remove Amember's default header styling */
.am-header {
    display: none !important;
}

/* Hide any site name/title that Amember might add */
.am-site-title,
.am-site-name,
h1.site-title,
.site-name {
    display: none !important;
}

/* Adjust Amember layout to work with website header/footer */
.am-layout {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Body styling to match website */
body {
    background: #f7f7f7 url("https://www.codereplacements.com/images/bg01.png") !important;
    color: #474747;
    font-family: Arial, 'Source Sans Pro', sans-serif;
    font-size: 16px;
}

/* ------------------------------------- 
   WEBSITE HEADER INTEGRATION
------------------------------------- */

/* Logo styling matching website - Slightly larger for better visibility */
#logo {
    display: block;
    width: 94%;
    max-width: 1100px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin: 0 auto;
    padding: 15px 0;
    border: none !important;
}

#logo:hover {
    opacity: 0.9;
    border: none !important;
}

#logo svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

#header {
    padding: 10px 0 !important;
    margin: 0 !important;
    text-align: center;
    background: #f7f7f7;
}

/* Hide any Amember default navigation in header */
#header nav,
#header #nav {
    display: none !important;
}

/* ------------------------------------- 
   CONTENT AREA STYLING
------------------------------------- */

.am-member-content {
    background: #fff;
    padding: 30px;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Page titles */
h1, h2, h3, h4, h5, h6 {
    color: #495057;
    font-family: Arial, 'Source Sans Pro', sans-serif;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #37c0fb;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

/* ------------------------------------- 
   AMEMBER SPECIFIC ELEMENTS
------------------------------------- */

/* Member tabs/navigation */
.am-tabs {
    background: #f0f5fa !important;
    border-bottom: 2px solid #37c0fb !important;
}

.am-tabs li a {
    color: #474747 !important;
    border: none !important;
}

.am-tabs li.active a,
.am-tabs li a:hover {
    background: #37c0fb !important;
    color: #fff !important;
    border: none !important;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    border: 1px solid #d1dde8 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    transition: border-color 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #37c0fb !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(55, 192, 251, 0.1) !important;
}

/* Buttons - Remove all gradients, ensure solid colors */
.am-button,
button,
input[type="submit"],
input[type="button"],
.btn,
.am-form button[type="submit"],
.am-form input[type="submit"],
button.am-button,
a.am-button {
    background-color: #37c0fb !important;
    background-image: none !important;
    background: #37c0fb !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.am-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.am-form button[type="submit"]:hover,
.am-form input[type="submit"]:hover,
button.am-button:hover,
a.am-button:hover {
    background-color: #2a9fd8 !important;
    background-image: none !important;
    background: #2a9fd8 !important;
    color: white !important;
    opacity: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Disabled buttons */
.am-button:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    background-color: #d1dde8 !important;
    background-image: none !important;
    background: #d1dde8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Tables */
.am-table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.am-table th,
table th {
    background-color: #f0f5fa;
    color: #495057;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #37c0fb;
}

.am-table td,
table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.am-table tr:hover,
table tr:hover {
    background-color: #f7f7f7;
}

/* Alerts and messages */
.am-alert,
.alert {
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.am-alert-success,
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.am-alert-info,
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.am-alert-warning,
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.am-alert-error,
.alert-error,
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Links */
a {
    color: #37c0fb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2a9fd8;
}

/* ------------------------------------- 
   FOOTER STYLING
------------------------------------- */

#footer {
    padding: 3em 0 9em 0;
    text-align: center;
    color: #6c757d;
    background: transparent;
}

#footer .copyright {
    color: #6c757d;
    margin-top: 1.5em;
    font-size: 0.9em;
}

#footer a {
    color: #37c0fb;
}

#footer a:hover {
    color: #2a9fd8;
}

#footer .icons li a {
    font-size: 2em;
    border: 0;
}

/* ------------------------------------- 
   SUBSCRIPTION/PRODUCT DISPLAY
------------------------------------- */

.am-product-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.am-product-box:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.am-product-box h3 {
    color: #37c0fb;
    margin-bottom: 10px;
}

/* ------------------------------------- 
   RESPONSIVE DESIGN
------------------------------------- */

@media screen and (max-width: 1024px) {
    #logo {
	width: 98%;
    }
}

@media screen and (max-width: 768px) {
    #logo {
	width: 100%;
	padding: 5px 10px;
    }

    .am-member-content {
	padding: 15px;
	margin: 10px;
    }

    #nav ul li {
	display: block;
	margin: 5px 0;
    }
}

@media screen and (max-width: 500px) {
    #header {
	margin: 1em;
    }

    #footer {
	padding: 1em 1em 5em 1em;
    }

    .am-member-content {
	padding: 10px;
	margin: 5px;
    }
}

/* ------------------------------------- 
   UTILITY CLASSES
------------------------------------- */

.text-center {
    text-align: center;
}

.text-primary {
    color: #37c0fb;
}

.text-dark {
    color: #495057;
}

.text-muted {
    color: #6c757d;
}

.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }