/* 
 * Archive.org Replica Styles
 * VII National Cyberleague Preamateur de la Guardia Civil
 */

/* ===== FONTS ===== */
@font-face {
    font-family: 'Iconochive-Regular';
    src: url('../fonts/Iconochive-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Iconochive-Regular.woff') format('woff'),
         url('../fonts/Iconochive-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('../fonts/glyphicons-halflings-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

body.navia {
    padding-top: 50px;
}

a {
    color: #428bca;
    text-decoration: none;
}

a:hover {
    color: #2a6496;
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== ICON FONT ===== */
[class^="iconochive-"],
[class*=" iconochive-"] {
    font-family: 'Iconochive-Regular' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icon definitions */
.iconochive-logo:before { content: "\e92b"; }
.iconochive-web:before { content: "\e900"; }
.iconochive-texts:before { content: "\e903"; }
.iconochive-movies:before { content: "\e909"; }
.iconochive-audio:before { content: "\e90c"; }
.iconochive-software:before { content: "\e912"; }
.iconochive-image:before { content: "\e91b"; }
.iconochive-tv:before { content: "\e907"; }
.iconochive-etree:before { content: "\e910"; }
.iconochive-collection:before { content: "\e924"; }
.iconochive-search:before { content: "\e901"; }
.iconochive-person:before { content: "\e928"; }
.iconochive-heart:before { content: "\e91a"; }
.iconochive-more:before { content: "\e930"; }
.iconochive-news:before { content: "\e91c"; }
.iconochive-download:before { content: "\e920"; }
.iconochive-upload:before { content: "\e922"; }
.iconochive-question:before { content: "\e92a"; }
.iconochive-comment:before { content: "\e91d"; }

/* Glyphicons */
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MEDIA TYPE COLORS ===== */
.audio,
[data-mediatype="audio"] .iconochive-audio,
[data-mediatype="audio"] .media-type-icon {
    color: #00adef;
}

.movies,
.tv,
[data-mediatype="movies"] .iconochive-movies,
[data-mediatype="movies"] .media-type-icon,
[data-mediatype="tv"] .iconochive-tv,
[data-mediatype="tv"] .media-type-icon {
    color: #f1644b;
}

.texts,
[data-mediatype="texts"] .iconochive-texts,
[data-mediatype="texts"] .media-type-icon {
    color: #faab3c;
}

.software,
[data-mediatype="software"] .iconochive-software,
[data-mediatype="software"] .media-type-icon {
    color: #9ecc4f;
}

.web,
[data-mediatype="web"] .iconochive-web,
[data-mediatype="web"] .media-type-icon {
    color: #ffcd27;
}

.image,
[data-mediatype="image"] .iconochive-image,
[data-mediatype="image"] .media-type-icon {
    color: #aa99c9;
}

[data-mediatype="etree"] .iconochive-etree,
[data-mediatype="etree"] .media-type-icon {
    color: #00adef;
}

[data-mediatype="collection"] .iconochive-collection,
[data-mediatype="collection"] .media-type-icon {
    color: #888;
}

/* ===== GRID SYSTEM (Bootstrap 3 compatible) ===== */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container,
.container-ia {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1170px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.row:before,
.row:after {
    display: table;
    content: " ";
}

.row:after {
    clear: both;
}

.col-xs-12,
.col-md-6 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-12 {
    width: 100%;
    float: left;
}

@media (min-width: 992px) {
    .col-md-6 {
        width: 50%;
        float: left;
    }
}

/* ===== NAVIGATION ===== */
#navwrap1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

#nav-tophats {
    background-color: #333;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 50px;
    position: relative;
}

.navbar-header {
    float: left;
}

.navbar-brand {
    float: left;
    height: 50px;
    padding: 12px 15px;
    font-size: 24px;
    line-height: 26px;
    color: #fff;
}

.navbar-brand:hover {
    color: #fff;
    text-decoration: none;
}

.navbar-brand .iconochive-logo {
    font-size: 24px;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav {
    margin: 0;
}

.navbar-nav > li {
    float: left;
}

.navbar-nav > li > a {
    padding: 15px;
    line-height: 20px;
}

.navbar-main > li > a {
    color: #aaa;
    font-size: 13px;
    padding: 15px 12px;
}

.navbar-main > li > a:hover,
.navbar-main > li > a:focus {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
}

.navbar-main > li > a .iconochive-web,
.navbar-main > li > a .iconochive-texts,
.navbar-main > li > a .iconochive-movies,
.navbar-main > li > a .iconochive-audio,
.navbar-main > li > a .iconochive-software,
.navbar-main > li > a .iconochive-image {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

.navbar-main > li > a.web:hover .iconochive-web { color: #ffcd27; }
.navbar-main > li > a.texts:hover .iconochive-texts { color: #faab3c; }
.navbar-main > li > a.movies:hover .iconochive-movies { color: #f1644b; }
.navbar-main > li > a.audio:hover .iconochive-audio { color: #00adef; }
.navbar-main > li > a.software:hover .iconochive-software { color: #9ecc4f; }
.navbar-main > li > a.image:hover .iconochive-image { color: #aa99c9; }

.hidden-xs-span {
    vertical-align: middle;
}

.navbar-right {
    float: right !important;
}

.navbar-right > li > a {
    color: #aaa;
    padding: 15px;
}

.navbar-right > li > a:hover {
    color: #fff;
}

.navbar-toggle {
    display: none;
}

.donate-btn > a {
    color: #f26b5b !important;
}

.donate-btn > a:hover {
    color: #fff !important;
}

/* Tophat dropdown */
#nav-tophat {
    background-color: #2b2b2b;
    border-bottom: 1px solid #444;
    display: none;
}

#nav-tophat.collapse {
    display: none;
}

#nav-tophat.in {
    display: block;
}

.toprow {
    padding: 15px 0;
}

.wayback-txt {
    color: #999;
    margin-bottom: 10px;
}

.wayback-txt a {
    color: #fff;
}

.wayback-form {
    max-width: 500px;
}

/* ===== FORM CONTROLS ===== */
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.input-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
    display: table-cell;
}

.input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
    display: table-cell;
}

.input-group-btn > .btn {
    position: relative;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    user-select: none;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-primary {
    color: #fff;
    background-color: #428bca;
    border-color: #357ebd;
}

.btn-primary:hover {
    color: #fff;
    background-color: #3071a9;
    border-color: #285e8e;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* ===== MAIN CONTENT ===== */
#maincontent {
    padding: 20px 0;
}

/* Welcome Section */
.welcome-wrapper {
    text-align: center;
    padding: 30px 20px;
    background-color: #f5f5f7;
    margin-bottom: 30px;
    border-radius: 4px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 20px;
}

.celebration-banner {
    margin-bottom: 20px;
}

.celebration-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.cyberleague-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 20px;
    margin-top: 15px;
    display: inline-block;
    max-width: 700px;
}

.cyberleague-notice p {
    margin: 0;
    color: #856404;
}

/* ===== MEDIA TYPES GRID ===== */
.media-types {
    margin-bottom: 40px;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 auto;
    max-width: 900px;
}

.media-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 90px;
}

.media-type-item:hover {
    text-decoration: none;
    background-color: #f5f5f5;
    border-color: #ccc;
}

.media-type-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.media-type-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #333;
}

.media-type-count {
    font-size: 11px;
    color: #999;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.searchbar .input-group {
    width: 100%;
}

.searchbar .form-control {
    height: 44px;
    font-size: 16px;
    border-color: #428bca;
}

.searchbar .btn {
    height: 44px;
    padding: 6px 20px;
    font-size: 16px;
}

.searchbar .btn .iconochive-search {
    margin-right: 5px;
}

.search-options {
    text-align: center;
    margin-top: 10px;
}

.advanced-search {
    font-size: 13px;
    color: #428bca;
}

/* ===== HOME SECTIONS ===== */
.home-sections {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section-heading [class^="iconochive-"] {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
    color: #666;
}

/* Blog Section */
.blog-section {
    margin-bottom: 30px;
}

.blog-post {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px;
    line-height: 1.4;
}

.blog-post h3 a {
    color: #428bca;
}

.blog-post h3 a:hover {
    color: #2a6496;
}

.post-meta {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.more-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #428bca;
}

/* Help Section */
.help-section {
    margin-bottom: 30px;
}

.help-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.help-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    flex: 0 0 calc(50% - 5px);
    transition: all 0.2s ease;
}

.help-item:hover {
    text-decoration: none;
    background-color: #eee;
    border-color: #ccc;
}

.help-item [class^="iconochive-"] {
    font-size: 20px;
    margin-right: 10px;
    color: #428bca;
}

.help-text {
    flex: 1;
}

.carousel-nav {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    flex-shrink: 0;
    margin: 0 5px;
}

.carousel-nav:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.carousel-nav.prev {
    margin-left: 0;
}

.carousel-nav.next {
    margin-right: 0;
}

/* ===== COLLECTIONS SECTION ===== */
.collections-section {
    margin-bottom: 40px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.collection-tile {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.collection-tile:hover {
    text-decoration: none;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tile-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.collection-icon {
    font-size: 48px;
    opacity: 0.7;
}

.tile-info {
    padding: 12px;
}

.tile-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tile-count {
    font-size: 11px;
    color: #999;
}

.tile-count [class^="iconochive-"] {
    font-size: 10px;
    margin-right: 3px;
}

/* ===== FOOTER ===== */
#footer {
    background-color: #333;
    color: #aaa;
    padding: 20px 15px;
    text-align: center;
    font-size: 12px;
}

.footer-link {
    color: #aaa;
}

.footer-link:hover {
    color: #fff;
}

.footer-separator {
    margin: 0 15px;
}

.footer-text {
    display: block;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .col-md-6 {
        width: 100%;
        float: none;
    }
    
    .help-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .navbar-toggle {
        display: block;
        float: right;
        margin-top: 8px;
        margin-right: 15px;
        padding: 9px 10px;
        background-color: transparent;
        border: 1px solid #444;
        border-radius: 4px;
    }
    
    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: #888;
    }
    
    .navbar-toggle .icon-bar + .icon-bar {
        margin-top: 4px;
    }
    
    .navbar-main {
        display: none;
    }
    
    .hidden-xs-span {
        display: none;
    }
    
    .media-type-item {
        min-width: 80px;
        padding: 10px 12px;
    }
    
    .media-type-icon {
        font-size: 32px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-text {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .media-grid {
        gap: 4px;
    }
    
    .media-type-item {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .media-type-icon {
        font-size: 28px;
    }
    
    .media-type-label {
        font-size: 12px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITIES ===== */
.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

.collapse {
    display: none;
}

.collapse.in {
    display: block;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: " ";
}

.clearfix:after {
    clear: both;
}

/* Roundbox for wayback search */
.roundbox7 {
    border-radius: 7px;
}
